| @@ 64-68 (lines=5) @@ | ||
| 61 | /** @var Annotation\Query $annotation */ |
|
| 62 | $query = new QueryDefinition(); |
|
| 63 | ||
| 64 | if ($annotation->name) { |
|
| 65 | $query->setName($annotation->name); |
|
| 66 | } else { |
|
| 67 | $query->setName(lcfirst($this->getDefaultName($refClass, $definitionManager))); |
|
| 68 | } |
|
| 69 | ||
| 70 | if ($definitionManager->hasQuery($query->getName())) { |
|
| 71 | $query = $definitionManager->getQuery($query->getName()); |
|
| @@ 43-47 (lines=5) @@ | ||
| 40 | public function parse($annotation, \ReflectionClass $refClass, DefinitionManager $definitionManager) |
|
| 41 | { |
|
| 42 | /** @var Annotation\QueryGet $annotation */ |
|
| 43 | if ($annotation->name) { |
|
| 44 | $name = $annotation->name; |
|
| 45 | } else { |
|
| 46 | $name = lcfirst($this->getDefaultName($refClass, $definitionManager)); |
|
| 47 | } |
|
| 48 | $this->createGetNoneQuery($name, $annotation, $refClass, $definitionManager); |
|
| 49 | ||
| 50 | if ($annotation->pluralQuery) { |
|