PHP Class PHPStan\Reflection\Php\PhpParameterReflection

Inheritance: implements PHPStan\Reflection\ParameterReflection
Show file Open project: phpstan/phpstan

Public Methods

Method Description
__construct ( ReflectionParameter $reflection, PHPStan\Type\Type $phpDocType = null )
getName ( ) : string
getType ( ) : PHPStan\Type\Type
isOptional ( ) : boolean
isPassedByReference ( ) : boolean

Method Details

__construct() public method

public __construct ( ReflectionParameter $reflection, PHPStan\Type\Type $phpDocType = null )
$reflection ReflectionParameter
$phpDocType PHPStan\Type\Type

getName() public method

public getName ( ) : string
return string

getType() public method

public getType ( ) : PHPStan\Type\Type
return PHPStan\Type\Type

isOptional() public method

public isOptional ( ) : boolean
return boolean

isPassedByReference() public method

public isPassedByReference ( ) : boolean
return boolean