@@ 5-21 (lines=17) @@ | ||
2 | ||
3 | namespace HansOtt\GraphQL\Query; |
|
4 | ||
5 | final class Argument extends NodeBase |
|
6 | { |
|
7 | public $name; |
|
8 | public $value; |
|
9 | ||
10 | /** |
|
11 | * @param string $name |
|
12 | * @param Value $value |
|
13 | * @param Location|null $location |
|
14 | */ |
|
15 | public function __construct($name, Value $value, Location $location = null) |
|
16 | { |
|
17 | parent::__construct($location); |
|
18 | $this->name = (string) $name; |
|
19 | $this->value = $value; |
|
20 | } |
|
21 | ||
22 | public function getChildren() |
|
23 | { |
|
24 | return array($this->value); |
@@ 5-21 (lines=17) @@ | ||
2 | ||
3 | namespace HansOtt\GraphQL\Query; |
|
4 | ||
5 | final class ValueObjectField extends NodeBase |
|
6 | { |
|
7 | public $name; |
|
8 | public $value; |
|
9 | ||
10 | /** |
|
11 | * @param string $name |
|
12 | * @param Value $value |
|
13 | * @param Location|null $location |
|
14 | */ |
|
15 | public function __construct($name, Value $value, Location $location = null) |
|
16 | { |
|
17 | parent::__construct($location); |
|
18 | $this->name = (string) $name; |
|
19 | $this->value = $value; |
|
20 | } |
|
21 | ||
22 | public function getChildren() |
|
23 | { |
|
24 | return array($this->value); |