PHP Class Kahlan\Analysis\Inspector

Show file Open project: crysalead/kahlan Class Usage Examples

Protected Properties

Property Type Description
$_cache array The ReflectionClass instances cache.

Public Methods

Method Description
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.

Method Details

inspect() public static method

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

parameters() public static method

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.
return array The parameters array.

typehint() public static method

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

Property Details

$_cache protected static property

The ReflectionClass instances cache.
protected static array $_cache
return array