@@ 114-123 (lines=10) @@ | ||
111 | } |
|
112 | ||
113 | $properties = $class->getProperties(); |
|
114 | foreach ($properties as $property) { |
|
115 | if ($property->getDeclaringClass()->name !== $class->name) { |
|
116 | continue; |
|
117 | } |
|
118 | ||
119 | $annotation = $this->reader->getPropertyAnnotation($property, Property::class); |
|
120 | if (null !== $annotation) { |
|
121 | $metadata->addProperty($this->loadPropertyMetadata($annotation, $property)); |
|
122 | } |
|
123 | } |
|
124 | ||
125 | return $metadata; |
|
126 | } |
|
@@ 141-152 (lines=12) @@ | ||
138 | $metadata->setAllowEmpty($document->allowEmpty); |
|
139 | ||
140 | $properties = $class->getProperties(); |
|
141 | foreach ($properties as $property) { |
|
142 | if ($property->getDeclaringClass()->name !== $class->name) { |
|
143 | continue; |
|
144 | } |
|
145 | ||
146 | $annotation = $this->reader->getPropertyAnnotation($property, ApiContent::class); |
|
147 | if (null !== $annotation) { |
|
148 | $metadata->setContentMetadata($this->loadPropertyMetadata($annotation, $property)); |
|
149 | ||
150 | break; |
|
151 | } |
|
152 | } |
|
153 | ||
154 | return $metadata; |
|
155 | } |