Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
63 | public function toGraphql(): string |
||
64 | { |
||
65 | $args = array_map( |
||
66 | function (MetadataParameter $a) { |
||
67 | return $a->toGraphql(); |
||
68 | }, |
||
69 | $this->args |
||
70 | ); |
||
71 | |||
72 | $argString = ''; |
||
73 | if (!empty($args)) { |
||
74 | $argString = "(" . join("\n", $args) . "\n)"; |
||
75 | } |
||
76 | return <<< EOF |
||
77 | """ |
||
78 | {$this->comment} |
||
79 | """ |
||
80 | directive @{$this->name}{$argString} on FIELD_DEFINITION |
||
81 | |||
105 |