src/Definition/Loader/Annotation/MutationAnnotationParser.php 1 location
|
@@ 78-82 (lines=5) @@
|
| 75 |
|
|
| 76 |
|
$mutation = new MutationDefinition(); |
| 77 |
|
|
| 78 |
|
if ($annotation->name) { |
| 79 |
|
$mutation->setName($annotation->name); |
| 80 |
|
} else { |
| 81 |
|
$mutation->setName(lcfirst(ClassUtils::getDefaultName($refClass->getName()))); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
$endpoint->addMutation($mutation); |
| 85 |
|
|
src/Definition/Loader/Annotation/QueryAnnotationParser.php 1 location
|
@@ 44-48 (lines=5) @@
|
| 41 |
|
/** @var Annotation\Query $annotation */ |
| 42 |
|
$query = new QueryDefinition(); |
| 43 |
|
|
| 44 |
|
if ($annotation->name) { |
| 45 |
|
$query->setName($annotation->name); |
| 46 |
|
} else { |
| 47 |
|
$query->setName(lcfirst(ClassUtils::getDefaultName($refClass->getName()))); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
$endpoint->addQuery($query); |
| 51 |
|
|
src/Definition/Loader/Annotation/StandaloneFieldParser.php 1 location
|
@@ 43-47 (lines=5) @@
|
| 40 |
|
|
| 41 |
|
$field = new FieldDefinition(); |
| 42 |
|
|
| 43 |
|
if ($annotation->name) { |
| 44 |
|
$field->setName($annotation->name); |
| 45 |
|
} else { |
| 46 |
|
$field->setName(lcfirst(ClassUtils::getDefaultName($refClass->getName()))); |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
$objectType = null; |
| 50 |
|
preg_match('/(\w+)\\\\Field\\\\(\w+)$/', $refClass->getName(), $matches); |