PHP 클래스 Eloquent\Phony\Invocation\InvocableInspector

파일 보기 프로젝트 열기: eloquent/phony 1 사용 예제들

공개 메소드들

메소드 설명
__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.