src/Parser/Ast/Field.php 1 location
|
@@ 79-88 (lines=10) @@
|
| 76 |
|
$this->arguments[$argument->getName()] = $argument; |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
public function getKeyValueArguments() |
| 80 |
|
{ |
| 81 |
|
$arguments = []; |
| 82 |
|
|
| 83 |
|
foreach ($this->getArguments() as $argument) { |
| 84 |
|
$arguments[$argument->getName()] = $argument->getValue()->getValue(); |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
return $arguments; |
| 88 |
|
} |
| 89 |
|
} |
src/Parser/Ast/Query.php 1 location
|
@@ 65-74 (lines=10) @@
|
| 62 |
|
$this->arguments[$argument->getName()] = $argument; |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
public function getKeyValueArguments() |
| 66 |
|
{ |
| 67 |
|
$arguments = []; |
| 68 |
|
|
| 69 |
|
foreach ($this->getArguments() as $argument) { |
| 70 |
|
$arguments[$argument->getName()] = $argument->getValue()->getValue(); |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
return $arguments; |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
/** |
| 77 |
|
* @return Field[]|Query[]|FragmentInterface[] |