PHP 클래스 Kahlan\Analysis\Inspector

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

보호된 프로퍼티들

프로퍼티 타입 설명
$_cache array The ReflectionClass instances cache.

공개 메소드들

메소드 설명
inspect ( string $class ) : object Gets the ReflectionClass instance of a class.
parameters ( $class, $method, $data = null ) : array Gets the parameters array of a class method.
typehint ( object $parameter ) : string Returns the type hint of a ReflectionParameter instance.

메소드 상세

inspect() 공개 정적인 메소드

Gets the ReflectionClass instance of a class.
public static inspect ( string $class ) : object
$class string The class name to inspect.
리턴 object The ReflectionClass instance.

parameters() 공개 정적인 메소드

Gets the parameters array of a class method.
public static parameters ( $class, $method, $data = null ) : array
$class The class name.
$method The method name.
$data The default values.
리턴 array The parameters array.

typehint() 공개 정적인 메소드

Returns the type hint of a ReflectionParameter instance.
public static typehint ( object $parameter ) : string
$parameter object A instance of `ReflectionParameter`.
리턴 string The parameter type hint.

프로퍼티 상세

$_cache 보호되어 있는 정적으로 프로퍼티

The ReflectionClass instances cache.
protected static array $_cache
리턴 array