Maslosoft Addendum API
Class Addendum
- Maslosoft\Addendum\Addendum implements Psr\Log\LoggerAwareInterface
Methods summary
public
|
|
public static
|
|
public
|
|
public
string
|
|
public
|
|
public
boolean
|
#
hasAnnotations( string|object $class )
Check if class could have annotations. NOTE:
|
public
|
|
public
|
|
public
Psr\Log\LoggerInterface
|
|
public
|
#
addNamespace( string $ns )
Add annotations namespace. Every added namespace will be included in annotation name resolving for current instance. |
public
|
#
addNamespaces( string[] $nss )
Add many annotation namespaces.
This is same as |
public static
|
|
public static
mixed[]
|
|
public static
|
|
public static
string
|
#
resolveClassName( string|boolean $class )
Resolve annotation class name to prefixed annotation class name |
Constants summary
string |
DefaultInstanceId
|
#
'addendum'
|
Properties summary
public
string
|
$runtimePath
Runtime path |
#
'runtime'
|
public
boolean
|
$checkMTime
Whether to check modification time of file to invalidate cache. Set this to true for development, and false for production. |
#
false
|
public
string[]
|
$namespaces
Namespaces to check for annotations. By default global and addendum namespace is included. |
#
[
'\\',
TargetAnnotation::Ns
]
|
public
string[]
|
$i18nAnnotations
Translatable annotations
TODO This should be moved to |
#
[
'Label',
'Description'
]
|
public
|
$plugins
Plugins collection |
#
[
'matcher' => [
ClassLiteralMatcher::class => [
SelfKeywordDecorator::class,
UseResolverDecorator::class,
[
'class' => ClassErrorSilencer::class,
'classes' => [
'PHPMD'
]
]
],
StaticConstantMatcher::class => [
UseResolverDecorator::class,
MagicConstantDecorator::class
],
AnnotationsMatcher::class => [
DefencerDecorator::class
]
]
]
|