| @@ 1151-1164 (lines=14) @@ | ||
| 1148 | * |
|
| 1149 | * @return array |
|
| 1150 | */ |
|
| 1151 | private function getClassAnnotations(\ReflectionClass $reflectionClass) |
|
| 1152 | { |
|
| 1153 | $classAnnotations = $this->reader->getClassAnnotations($reflectionClass); |
|
| 1154 | ||
| 1155 | foreach ($classAnnotations as $key => $annot) { |
|
| 1156 | if (! is_numeric($key)) { |
|
| 1157 | continue; |
|
| 1158 | } |
|
| 1159 | ||
| 1160 | $classAnnotations[get_class($annot)] = $annot; |
|
| 1161 | } |
|
| 1162 | ||
| 1163 | return $classAnnotations; |
|
| 1164 | } |
|
| 1165 | ||
| 1166 | /** |
|
| 1167 | * @param \ReflectionProperty $reflectionProperty |
|
| @@ 1171-1184 (lines=14) @@ | ||
| 1168 | * |
|
| 1169 | * @return array |
|
| 1170 | */ |
|
| 1171 | private function getPropertyAnnotations(\ReflectionProperty $reflectionProperty) |
|
| 1172 | { |
|
| 1173 | $propertyAnnotations = $this->reader->getPropertyAnnotations($reflectionProperty); |
|
| 1174 | ||
| 1175 | foreach ($propertyAnnotations as $key => $annot) { |
|
| 1176 | if (! is_numeric($key)) { |
|
| 1177 | continue; |
|
| 1178 | } |
|
| 1179 | ||
| 1180 | $propertyAnnotations[get_class($annot)] = $annot; |
|
| 1181 | } |
|
| 1182 | ||
| 1183 | return $propertyAnnotations; |
|
| 1184 | } |
|
| 1185 | ||
| 1186 | /** |
|
| 1187 | * @param \ReflectionMethod $reflectionMethod |
|
| @@ 1191-1204 (lines=14) @@ | ||
| 1188 | * |
|
| 1189 | * @return array |
|
| 1190 | */ |
|
| 1191 | private function getMethodAnnotations(\ReflectionMethod $reflectionMethod) |
|
| 1192 | { |
|
| 1193 | $methodAnnotations = $this->reader->getMethodAnnotations($reflectionMethod); |
|
| 1194 | ||
| 1195 | foreach ($methodAnnotations as $key => $annot) { |
|
| 1196 | if (! is_numeric($key)) { |
|
| 1197 | continue; |
|
| 1198 | } |
|
| 1199 | ||
| 1200 | $methodAnnotations[get_class($annot)] = $annot; |
|
| 1201 | } |
|
| 1202 | ||
| 1203 | return $methodAnnotations; |
|
| 1204 | } |
|
| 1205 | } |
|
| 1206 | ||