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
|
@@ 57-66 (lines=10) @@
|
| 54 |
|
$this->arguments[$argument->getName()] = $argument; |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
public function getKeyValueArguments() |
| 58 |
|
{ |
| 59 |
|
$arguments = []; |
| 60 |
|
|
| 61 |
|
foreach ($this->getArguments() as $argument) { |
| 62 |
|
$arguments[$argument->getName()] = $argument->getValue()->getValue(); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
return $arguments; |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
/** |
| 69 |
|
* @return Field[]|Query[] |