Trait Reflection
Direct Known Users
MvcCore\Tool
public static
boolean
|
|
public static
boolean
|
|
public static
boolean
|
#
CheckClassInterface( string $testClassName, string $interfaceName, boolean $checkStaticMethods = FALSE, boolean $throwException = TRUE )
|
public static
boolean
|
#
CheckClassTrait( string $testClassName, string $traitName, boolean $checkParentClasses = FALSE, boolean $throwException = TRUE )
|
public static
array
|
#
GetClassAttrsArgs( string|object $classFullNameOrInstance, string[] $attrsClassesOrDocsTags, boolean|null $preferAttributes = NULL )
|
public static
array
|
#
GetMethodAttrsArgs( string|object $classFullNameOrInstance, string $methodName, string[] $attrsClassesOrDocsTags, boolean|null $preferAttributes = NULL )
|
public static
array
|
#
GetPropertyAttrsArgs( string|object $classFullNameOrInstance, string $propertyName, string[] $attrsClassesOrDocsTags, boolean|null $preferAttributes = NULL )
|
protected static
array
|
#
getAttrArgsOrPhpDocTagArgs( string $cacheKey, ReflectionClass|ReflectionMethod|ReflectionProperty $reflectionObject, string $attrClassOrDocsTag, boolean $attrsOnly, boolean $docsTagsOnly )
Get (cached) reflection object attribute(s) constructor arguments or get reflection object PhpDocs tags and it's arguments for older PHP versions. Set result into local memory cache. You can optionally set prefered way to get desired meta data by last two arguments. |
public static
array|null
|
#
GetAttrCtorArgs( ReflectionClass|ReflectionMethod|ReflectionProperty $reflectionObject, string $attributeClassFullName )
|
public static
array|null
|
#
GetPhpDocsTagArgs( ReflectionClass|ReflectionMethod|ReflectionProperty $reflectionObject, string $phpDocsTagName )
|
protected static
array
&
|
#
checkClassInterfaceGetPublicStaticMethods( string $interfaceName )
Complete array with only static and also only public method names by given interface name. Return completed array and cache it in static local array. |
protected static
array
|
$cacheInterfStaticMths
Cache with keys by full interface class names and with values with only static and also only public method names by the interface name. |
#
[]
|
protected static
array
|
$cacheAttrsArgs
Key/value store for parsed reflection attributes constructor arguments. |
#
[]
|
protected static
boolean
|
$attributesAnotation
Prefered PHP classes and properties anontation.
|
#
FALSE
|