class Reflector (View source)

Methods

static string|null
getParameterClassName(ReflectionParameter $parameter)

Get the class name of the given parameter's type, if possible.

static bool
isParameterSubclassOf(ReflectionParameter $parameter, string $className)

Determine if the parameter's type is a subclass of the given type.

Details

static string|null getParameterClassName(ReflectionParameter $parameter)

Get the class name of the given parameter's type, if possible.

Parameters

ReflectionParameter $parameter

Return Value

string|null

static bool isParameterSubclassOf(ReflectionParameter $parameter, string $className)

Determine if the parameter's type is a subclass of the given type.

Parameters

ReflectionParameter $parameter
string $className

Return Value

bool