Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
AnnotationsEngineInterface.php
Go to the documentation of this file.
1<?php
3
13
19 public function start(string $cacheDirectory): void;
20
26 public function registerAnnotations(array $nameClasses): void;
27
34 public function getAnnotsOfClass(string $class, ?string $annotationType = null): array;
35
43 public function getAnnotsOfMethod(string $class, string $method, ?string $annotationType = null): array;
44
52 public function getAnnotsOfProperty(string $class, string $property, ?string $annotationType = null): array;
53
59 public function getAnnotationByKey(?string $key=null): ?string;
60
67 public function getAnnotation(?object $container,string $key,array $parameters=[]): ?object;
68
73 public function getAnnotationsStr(array $annotations,string $prefix="\t"):string;
74
75 public static function isManyToOne(object $annotation):bool;
76
77 public static function isMany(object $annotation):bool;
78
79 public static function isOneToMany(object $annotation):bool;
80
81 public static function isManyToMany(object $annotation):bool;
82
83 public function is(string $key, object $annotation): bool;
84
85 public function registerAcls(): void;
86
87}
88
Ubiquity\annotations$AnnotationsInterface This class is part of Ubiquity.
getAnnotsOfClass(string $class, ?string $annotationType=null)
start(string $cacheDirectory)
Start the annotations engine for dev mode.
getAnnotationsStr(array $annotations, string $prefix="\t")
is(string $key, object $annotation)
getAnnotation(?object $container, string $key, array $parameters=[])
getAnnotsOfProperty(string $class, string $property, ?string $annotationType=null)
getAnnotsOfMethod(string $class, string $method, ?string $annotationType=null)