Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
AttributesEngine Class Reference
+ Inheritance diagram for AttributesEngine:

Public Member Functions

 getAnnotsOfClass (string $class, ?string $annotationType=null)
 
 getAnnotsOfMethod (string $class, string $method, ?string $annotationType=null)
 
 getAnnotsOfProperty (string $class, string $property, ?string $annotationType=null)
 
 start (string $cacheDirectory)
 Start the annotations engine for dev mode.
 
 getAnnotationByKey (?string $key=null)
 
 registerAnnotations (array $nameClasses)
 
 getAnnotation (?object $container, string $key, array $parameters=[])
 
 getAnnotationsStr (array $annotations, string $prefix="\t")
 
 is (string $key, object $annotation)
 
 registerAcls ()
 

Static Public Member Functions

static isManyToOne (object $annotation)
 
static isMany (object $annotation)
 
static isOneToMany (object $annotation)
 
static isManyToMany (object $annotation)
 

Protected Member Functions

 attributesNewInstances (array $attributes)
 

Static Protected Attributes

static array $registry
 

Private Member Functions

 getAnnotsOf (\Reflector $reflector, ?string $annotationType=null)
 

Detailed Description

Definition at line 32 of file AttributesEngine.php.

Member Function Documentation

◆ attributesNewInstances()

attributesNewInstances ( array  $attributes)
protected

Definition at line 36 of file AttributesEngine.php.

◆ getAnnotation()

getAnnotation ( ?object  $container,
string  $key,
array  $parameters = [] 
)
Parameters
NULL | object$container
string$key
array$parameters
Returns
object|NULL

Implements AnnotationsEngineInterface.

Definition at line 105 of file AttributesEngine.php.

◆ getAnnotationByKey()

getAnnotationByKey ( ?string  $key = null)
Parameters
?string$key
Returns
string|NULL

Implements AnnotationsEngineInterface.

Definition at line 97 of file AttributesEngine.php.

◆ getAnnotationsStr()

getAnnotationsStr ( array  $annotations,
string  $prefix = "\t" 
)
Parameters
array$annotations
Returns
string

Implements AnnotationsEngineInterface.

Definition at line 117 of file AttributesEngine.php.

◆ getAnnotsOf()

getAnnotsOf ( \Reflector  $reflector,
?string  $annotationType = null 
)
private

Definition at line 44 of file AttributesEngine.php.

◆ getAnnotsOfClass()

getAnnotsOfClass ( string  $class,
?string  $annotationType = null 
)
Parameters
string$class
?string$annotationType
Returns
array

Implements AnnotationsEngineInterface.

Definition at line 55 of file AttributesEngine.php.

◆ getAnnotsOfMethod()

getAnnotsOfMethod ( string  $class,
string  $method,
?string  $annotationType = null 
)
Parameters
string$class
string$method
?string$annotationType
Returns
array

Implements AnnotationsEngineInterface.

Definition at line 59 of file AttributesEngine.php.

◆ getAnnotsOfProperty()

getAnnotsOfProperty ( string  $class,
string  $property,
?string  $annotationType = null 
)
Parameters
string$class
string$property
?string$annotationType
Returns
array

Implements AnnotationsEngineInterface.

Definition at line 63 of file AttributesEngine.php.

◆ is()

is ( string  $key,
object  $annotation 
)

Implements AnnotationsEngineInterface.

Definition at line 150 of file AttributesEngine.php.

◆ isMany()

static isMany ( object  $annotation)
static

Implements AnnotationsEngineInterface.

Definition at line 138 of file AttributesEngine.php.

◆ isManyToMany()

static isManyToMany ( object  $annotation)
static

Implements AnnotationsEngineInterface.

Definition at line 146 of file AttributesEngine.php.

◆ isManyToOne()

static isManyToOne ( object  $annotation)
static

Implements AnnotationsEngineInterface.

Definition at line 134 of file AttributesEngine.php.

◆ isOneToMany()

static isOneToMany ( object  $annotation)
static

Implements AnnotationsEngineInterface.

Definition at line 142 of file AttributesEngine.php.

◆ registerAcls()

registerAcls ( )

Implements AnnotationsEngineInterface.

Definition at line 158 of file AttributesEngine.php.

◆ registerAnnotations()

registerAnnotations ( array  $nameClasses)
Parameters
array$nameClassesan array of name=>class annotations

Implements AnnotationsEngineInterface.

Definition at line 101 of file AttributesEngine.php.

◆ start()

start ( string  $cacheDirectory)

Start the annotations engine for dev mode.

Parameters
string$cacheDirectory

Implements AnnotationsEngineInterface.

Definition at line 67 of file AttributesEngine.php.

Field Documentation

◆ $registry

array $registry
staticprotected

Definition at line 34 of file AttributesEngine.php.


The documentation for this class was generated from the following file: