krzysztofzylka / reflection
Reflection helper
1.0.3
2025-04-08 20:11 UTC
Requires
- php: >=7.4
README
composer require krzysztofzylka/reflection
Methods
Get class directory path
\Krzysztofzylka\Reflection\Reflection::getDirectoryPath($objectOrClass)
Get class public property
\Krzysztofzylka\Reflection\Reflection::getPublicPropertyList($object)
Get class comments
\Krzysztofzylka\Reflection\Reflection::getClassComment($object, 'type (not required)')
Get class method comments
\Krzysztofzylka\Reflection\Reflection::getClassMethodComment($object, 'method', 'type (not required)')
Find class method comment
$comments = \Krzysztofzylka\Reflection\Reflection::getClassMethodComment($object, 'method', 'type (not required)') \Krzysztofzylka\Reflection\Reflection::findClassComment($comments, 'auth')
Get class methods
\Krzysztofzylka\Reflection\Reflection::getClassMethods($objectOrClass)