krzysztofzylka / reflection
Reflection helper
Installs: 184
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/krzysztofzylka/reflection
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)