PHP Class Eloquent\Phony\Reflection\FunctionSignatureInspector

Show file Open project: eloquent/phony Class Usage Examples

Public Methods

Method 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 method

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

callbackSignature() public method

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

instance() public static method

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

signature() abstract public method

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