PHP Class Eloquent\Phony\Invocation\InvocableInspector

Afficher le fichier Open project: eloquent/phony Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Construct a new invocable inspector.
public __construct ( )

callbackReflector() public méthode

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

callbackReturnType() public méthode

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

instance() public static méthode

Get the static instance of this inspector.
public static instance ( ) : InvocableInspector
Résultat InvocableInspector The static inspector.

isBoundClosureSupported() public méthode

Returns true if bound closures are supported.
public isBoundClosureSupported ( ) : boolean
Résultat boolean True if bound closures are supported.