PHP 클래스 Webiny\Component\Annotations\Annotations

This component provides methods for reading annotations assigned to a class, method or property.
상속: use trait Webiny\Component\StdLib\ComponentTrait
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
getClassAnnotations ( string $class ) : ConfigObject Get all annotations for the given class.
getMethodAnnotations ( string $class, string $method ) : ConfigObject Get all annotations for the method name on the given class.
getPropertyAnnotations ( string $class, string $property ) : ConfigObject Get all annotations for the property name on the given class.

비공개 메소드들

메소드 설명
explodeNamespaces ( array $annotationBag ) : array Converts the dotted annotations inside array key names into a multidimensional array.
setArrayValue ( array &$root, string $compositeKey, string $value ) Changes the dotted annotation of one key into a multidimensional array.

메소드 상세

getClassAnnotations() 공개 정적인 메소드

Get all annotations for the given class.
public static getClassAnnotations ( string $class ) : ConfigObject
$class string Fully qualified class name
리턴 Webiny\Component\Config\ConfigObject ConfigObject instance containing all annotations.

getMethodAnnotations() 공개 정적인 메소드

Get all annotations for the method name on the given class.
public static getMethodAnnotations ( string $class, string $method ) : ConfigObject
$class string Fully qualified class name
$method string Method name
리턴 Webiny\Component\Config\ConfigObject ConfigObject instance containing all annotations.

getPropertyAnnotations() 공개 정적인 메소드

Get all annotations for the property name on the given class.
public static getPropertyAnnotations ( string $class, string $property ) : ConfigObject
$class string Fully qualified class name
$property string Property name
리턴 Webiny\Component\Config\ConfigObject ConfigObject instance containing all annotations.