|
@@ 69-78 (lines=10) @@
|
| 66 |
|
* |
| 67 |
|
* @return Property|object|null |
| 68 |
|
*/ |
| 69 |
|
private function getPropertyAnnotationData(\ReflectionProperty $property) |
| 70 |
|
{ |
| 71 |
|
$result = $this->reader->getPropertyAnnotation($property, self::PROPERTY_ANNOTATION); |
| 72 |
|
|
| 73 |
|
if ($result !== null && $result->name === null) { |
| 74 |
|
$result->name = Caser::snake($property->getName()); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
return $result; |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
/** |
| 81 |
|
* Returns Embedded annotation data from reader. |
|
@@ 87-96 (lines=10) @@
|
| 84 |
|
* |
| 85 |
|
* @return Embedded|object|null |
| 86 |
|
*/ |
| 87 |
|
private function getEmbeddedAnnotationData(\ReflectionProperty $property) |
| 88 |
|
{ |
| 89 |
|
$result = $this->reader->getPropertyAnnotation($property, self::EMBEDDED_ANNOTATION); |
| 90 |
|
|
| 91 |
|
if ($result !== null && $result->name === null) { |
| 92 |
|
$result->name = Caser::snake($property->getName()); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
return $result; |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
/** |
| 99 |
|
* Returns HashMap annotation data from reader. |
|
@@ 105-114 (lines=10) @@
|
| 102 |
|
* |
| 103 |
|
* @return HashMap|object|null |
| 104 |
|
*/ |
| 105 |
|
private function getHashMapAnnotationData(\ReflectionProperty $property) |
| 106 |
|
{ |
| 107 |
|
$result = $this->reader->getPropertyAnnotation($property, self::HASH_MAP_ANNOTATION); |
| 108 |
|
|
| 109 |
|
if ($result !== null && $result->name === null) { |
| 110 |
|
$result->name = Caser::snake($property->getName()); |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
return $result; |
| 114 |
|
} |
| 115 |
|
|
| 116 |
|
private function getMetaFieldAnnotationData(\ReflectionProperty $property): array |
| 117 |
|
{ |