krzysztofzylka/reflection

1.0.1 2023-12-08 21:04 UTC

This package is auto-updated.

Last update: 2024-05-08 21:50:09 UTC


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)