PHP Class Eloquent\Phony\Reflection\FunctionSignatureInspector

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

Méthodes publiques

Méthode Description
__construct ( InvocableInspector $invocableInspector ) Construct a new function signature inspector.
callbackSignature ( callable $callback ) : array>\array Get the function signature of the supplied callback.
instance ( ) : FunctionSignatureInspector Get the static instance of this inspector.
signature ( ReflectionFunctionAbstract $function ) : array>\array Get the function signature of the supplied function.

Method Details

__construct() public méthode

Construct a new function signature inspector.
public __construct ( InvocableInspector $invocableInspector )
$invocableInspector Eloquent\Phony\Invocation\InvocableInspector The invocable inspector to use.

callbackSignature() public méthode

Get the function signature of the supplied callback.
public callbackSignature ( callable $callback ) : array>\array
$callback callable The callback.
Résultat array>\array

instance() public static méthode

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

signature() abstract public méthode

Get the function signature of the supplied function.
abstract public signature ( ReflectionFunctionAbstract $function ) : array>\array
$function ReflectionFunctionAbstract The function.
Résultat array>\array