1 | <?php |
||
11 | class MetadataLayer |
||
12 | { |
||
13 | const ANNOTATION = 'annotation'; |
||
14 | const REFLECTION = 'reflection'; |
||
15 | const PATH_MASK_BY_HUB = 'bits_mask_by_hub'; |
||
16 | const PATH_HUB = 'bits_hub'; |
||
17 | const PATH_HUB_MASK = 'hub_mask'; |
||
18 | |||
19 | /** |
||
20 | * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata |
||
21 | * @param string|ReflectionProperty $propertyName |
||
22 | * |
||
23 | * @return ReflectionProperty |
||
24 | */ |
||
25 | public static function getHubReflection($classMetadata, $propertyName) |
||
31 | |||
32 | /** |
||
33 | * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata |
||
34 | * @param string|ReflectionProperty $propertyName |
||
35 | * |
||
36 | * @return \KonstantinKuklin\DoctrineCompressedFields\Annotation\Hub |
||
37 | */ |
||
38 | 1 | public static function getHubAnnotation($classMetadata, $propertyName) |
|
44 | |||
45 | /** |
||
46 | * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata |
||
47 | * @param string|ReflectionProperty $propertyName |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | 1 | public static function getHub($classMetadata, $propertyName) |
|
60 | |||
61 | /** |
||
62 | * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata |
||
63 | * @param \KonstantinKuklin\DoctrineCompressedFields\Annotation\Hub $annotation |
||
64 | * @param ReflectionProperty $reflection |
||
65 | */ |
||
66 | 8 | public static function setHub($classMetadata, $annotation, $reflection) |
|
76 | |||
77 | /** |
||
78 | * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata |
||
79 | * @param string|ReflectionProperty $propertyName |
||
80 | * |
||
81 | * @return \KonstantinKuklin\DoctrineCompressedFields\Annotation\Mask |
||
82 | */ |
||
83 | 1 | public static function getMaskAnnotation($classMetadata, $propertyName) |
|
96 | |||
97 | /** |
||
98 | * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata |
||
99 | * @param string|ReflectionProperty $propertyName |
||
100 | * |
||
101 | * @return ReflectionProperty |
||
102 | */ |
||
103 | 1 | public static function getMaskReflection($classMetadata, $propertyName) |
|
116 | |||
117 | /** |
||
118 | * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata |
||
119 | * @param string $hub |
||
120 | * |
||
121 | * @return array |
||
122 | */ |
||
123 | 1 | public static function getMaskList($classMetadata, $hub) |
|
129 | |||
130 | /** |
||
131 | * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata |
||
132 | * @param \KonstantinKuklin\DoctrineCompressedFields\Annotation\Mask $annotation |
||
133 | * @param ReflectionProperty $reflection |
||
134 | */ |
||
135 | 8 | public static function setMask($classMetadata, $annotation, $reflection) |
|
148 | |||
149 | /** |
||
150 | * @param \Doctrine\ORM\Mapping\ClassMetadata $classMetadata |
||
151 | * |
||
152 | * @return bool |
||
153 | */ |
||
154 | 8 | public static function isAlreadyProcessed($classMetadata) |
|
161 | } |
||
162 |