PHP Класс Eloquent\Phony\Invocation\InvocableInspector

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Construct a new invocable inspector.
public __construct ( )

callbackReflector() публичный Метод

Get the appropriate reflector for the supplied callback.
public callbackReflector ( callable $callback ) : ReflectionFunctionAbstract
$callback callable The callback.
Результат ReflectionFunctionAbstract The reflector.

callbackReturnType() публичный Метод

Get the return type for the supplied callback.
public callbackReturnType ( callable $callback ) : ReflectionTyp\ReflectionType | null
$callback callable The callback.
Результат ReflectionTyp\ReflectionType | null The return type, or null if no return type is defined.

instance() публичный статический Метод

Get the static instance of this inspector.
public static instance ( ) : InvocableInspector
Результат InvocableInspector The static inspector.

isBoundClosureSupported() публичный Метод

Returns true if bound closures are supported.
public isBoundClosureSupported ( ) : boolean
Результат boolean True if bound closures are supported.