PHP Class BetterReflection\TypesFinder\FindParameterType

显示文件 Open project: roave/better-reflection

Public Methods

Method Description
__invoke ( ReflectionFunctionAbstract $function, Param $node ) : phpDocumentor\Reflection\Type[] Given a function and parameter, attempt to find the type of the parameter.

Private Methods

Method Description
createContextForFunction ( ReflectionFunctionAbstract $function ) : phpDocumentor\Reflection\Types\Context

Method Details

__invoke() public method

Given a function and parameter, attempt to find the type of the parameter.
public __invoke ( ReflectionFunctionAbstract $function, Param $node ) : phpDocumentor\Reflection\Type[]
$function BetterReflection\Reflection\ReflectionFunctionAbstract
$node PhpParser\Node\Param
return phpDocumentor\Reflection\Type[]