Maslosoft Addendum API
Class TargetAnnotation
Annotation target annotation This allow limiting annotation use for properties, class, method or concrete type Valid values are
class
- limit annotation for class onlymethod
- limit annotation for method onlyproperty
- limit annotation for property onlynested
- set this to allow use of annotation only as nested annotation- Any existing class name - to restrict use of annotation only on concrete class or its descendants
Examples:
Allow only on selected class and subclasses
```
- Maslosoft\Addendum\Annotation implements Maslosoft\Addendum\Interfaces\AnnotationInterface uses Maslosoft\Addendum\Traits\MetaState
- Maslosoft\Addendum\Annotations\TargetAnnotation
Namespace: Maslosoft\Addendum\Annotations
Target(some\target\classname): When use statement for `Some\Target\ClassName` is provided, it could be shortened:
Target(some\target\classname)
Target(classname):
Target('property'): Only on this class and subclasses - on methods:
Target('property'): ```
Target('some\target\classname')
Target('method'): On methods and properties:
Target('method')
Template: Target('${target}')
Located at Annotations/TargetAnnotation.php
Target(some\target\classname): When use statement for `Some\Target\ClassName` is provided, it could be shortened:
Target(some\target\classname)
Target(classname):
Several targets can be specified. Only on this class and subclasses - on properties:
Target('property'): Only on this class and subclasses - on methods:
Target('property'): ```
Target('some\target\classname')
Target('method'): On methods and properties:
Target('method')
Template: Target('${target}')
Located at Annotations/TargetAnnotation.php
Methods summary
public static
|
|
public
|
Methods inherited from Maslosoft\Addendum\Annotation
Methods used from Maslosoft\Addendum\Traits\MetaState
Constants summary
string |
Ns
For internal use |
#
__NAMESPACE__
|
string |
TargetClass
|
#
'class'
|
string |
TargetMethod
|
#
'method'
|
string |
TargetProperty
|
#
'property'
|
string |
TargetNested
|
#
'nested'
|
API documentation generated by ApiGen