Method Attributes
PHP Class with Class Attributes
Initialize the Attributes Reader
Available functions for Method Attributes
If
$method_name
isnull
, returnstrue
orfalse
based on availability of Method attributes in the class.If
$method_name
is notnull
, returnstrue
orfalse
based on availability of Method attributes for the given$method_name
.
If
$method_name
isnull
, returns all the Method attributes in the class.If $method_name is not
null
, returns all the Method attributes for the given method name. It will be an array of attributes. Each item on Array will be an instance of Attribute classIf given
$method_name
is not available within the list of Method attributes, this function will throwsAntonDPerera\PHPAttributesReader\Exceptions\MethodNotFoundException
.
If given
$method_name
is not available within the list of Method attributes, this function will throwsAntonDPerera\PHPAttributesReader\Exceptions\MethodNotFoundException
.If given
$method_name
is available within the list of Method attributes but the given$attribute_name
doesn't exists in the attributes list this function will throwsAntonDPerera\PHPAttributesReader\Exceptions\MethodAttributeNotFoundException
.
Last updated