$defaultNamespace
$defaultNamespace : string
Stores the default namespace for Objects instance, usually used on methods like getMethodAnnotationsObjects()
Class imported from https://github.com/eriknyk/Annotations
getMethodAnnotations(string $className, string $methodName) : array
Gets all anotations with pattern @SomeAnnotation() from a determinated method of a given class
string | $className | class name |
string | $methodName | method name to get annotations |
self::$annotationCache all annotated elements of a method given
getMethodAnnotationsObjects(string $className, string $methodName) : array
Gets all anotations with pattern @SomeAnnotation() from a determinated method of a given class and instance its abcAnnotation class
string | $className | class name |
string | $methodName | method name to get annotations |
self::$annotationCache all annotated objects of a method given
castValue(string $val, boolean $trim = false) : mixed
Try determinate the original type variable of a string
string | $val | string containing possibles variables that can be cast to bool or int |
boolean | $trim | indicate if the value passed should be trimmed after to try cast |
returns the value converted to original type if was possible