PHP Trait Webiny\Component\Annotations\AnnotationsTrait

Show file Open project: Webiny/Framework

Protected Methods

Method Description
annotationsFromClass ( string $class ) : ConfigObject Get all annotations for the given class.
annotationsFromMethod ( string $class, string $method ) : ConfigObject Get all annotations for the method name on the given class.
annotationsFromProperty ( string $class, string $property ) : ConfigObject Get all annotations for the property name on the given class.

Method Details

annotationsFromClass() protected method

Get all annotations for the given class.
protected annotationsFromClass ( string $class ) : ConfigObject
$class string Fully qualified class name
return ConfigObject ConfigObject instance containing all annotations.

annotationsFromMethod() protected method

Get all annotations for the method name on the given class.
protected annotationsFromMethod ( string $class, string $method ) : ConfigObject
$class string Fully qualified class name
$method string Method name
return ConfigObject ConfigObject instance containing all annotations.

annotationsFromProperty() protected method

Get all annotations for the property name on the given class.
protected annotationsFromProperty ( string $class, string $property ) : ConfigObject
$class string Fully qualified class name
$property string Property name
return ConfigObject ConfigObject instance containing all annotations.