PHP Class Eloquent\Phony\Invocation\InvocableInspector

ファイルを表示 Open project: eloquent/phony Class Usage Examples

Public Methods

Method Description
__construct ( ) Construct a new invocable inspector.
callbackReflector ( callable $callback ) : ReflectionFunctionAbstract Get the appropriate reflector for the supplied callback.
callbackReturnType ( callable $callback ) : ReflectionTyp\ReflectionType | null Get the return type for the supplied callback.
instance ( ) : InvocableInspector Get the static instance of this inspector.
isBoundClosureSupported ( ) : boolean Returns true if bound closures are supported.

Method Details

__construct() public method

Construct a new invocable inspector.
public __construct ( )

callbackReflector() public method

Get the appropriate reflector for the supplied callback.
public callbackReflector ( callable $callback ) : ReflectionFunctionAbstract
$callback callable The callback.
return ReflectionFunctionAbstract The reflector.

callbackReturnType() public method

Get the return type for the supplied callback.
public callbackReturnType ( callable $callback ) : ReflectionTyp\ReflectionType | null
$callback callable The callback.
return ReflectionTyp\ReflectionType | null The return type, or null if no return type is defined.

instance() public static method

Get the static instance of this inspector.
public static instance ( ) : InvocableInspector
return InvocableInspector The static inspector.

isBoundClosureSupported() public method

Returns true if bound closures are supported.
public isBoundClosureSupported ( ) : boolean
return boolean True if bound closures are supported.