src/Api/Type/NoSuchParameterException.php
public static function forParameterName($parameterName, $typeName, Exception $cause = null)
    {
        return new static(sprintf(
            'The parameter "%s" does not exist for type "%s".',
            $parameterName,
            $typeName
        ), 0, $cause);
    }
public static function forParameterName($parameterName, $typeName, Exception $cause = null)
    {
        return new static(sprintf(
            'The parameter "%s" does not exist for type "%s".',
            $parameterName,
            $typeName
        ), 0, $cause);
    }
public static function forParameterName ( $ parameterName , $ typeName , Exception $ cause = null ) { return new static ( sprintf ( 'The parameter "%s" does not exist for type "%s".' , $ parameterName , $ typeName ) , 0 , $ cause ) ; }
Creates a new exception for the given parameter name.

@param string         $parameterName The name of the parameter that was
not found.
@param string         $typeName      The name of the type that the
parameter was searched on.
@param Exception|null $cause         The exception that caused this
exception.

@return static The created exception.
Creates a new exception for the given parameter name .