Skip to content

krzysztofzylka/Reflection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instalation

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)