| @@ 5-19 (lines=15) @@ | ||
| 2 | ||
| 3 | namespace HansOtt\GraphQL\Query; |
|
| 4 | ||
| 5 | final class ValueEnum extends NodeBase implements Value |
|
| 6 | { |
|
| 7 | public $value; |
|
| 8 | ||
| 9 | public function __construct($value, Location $location = null) |
|
| 10 | { |
|
| 11 | parent::__construct($location); |
|
| 12 | $this->value = (string) $value; |
|
| 13 | } |
|
| 14 | ||
| 15 | public function getChildren() |
|
| 16 | { |
|
| 17 | return array(); |
|
| 18 | } |
|
| 19 | } |
|
| 20 | ||
| @@ 5-19 (lines=15) @@ | ||
| 2 | ||
| 3 | namespace HansOtt\GraphQL\Query; |
|
| 4 | ||
| 5 | final class ValueFloat extends NodeBase implements Value |
|
| 6 | { |
|
| 7 | public $value; |
|
| 8 | ||
| 9 | public function __construct($value, Location $location = null) |
|
| 10 | { |
|
| 11 | parent::__construct($location); |
|
| 12 | $this->value = (float) $value; |
|
| 13 | } |
|
| 14 | ||
| 15 | public function getChildren() |
|
| 16 | { |
|
| 17 | return array(); |
|
| 18 | } |
|
| 19 | } |
|
| 20 | ||
| @@ 5-19 (lines=15) @@ | ||
| 2 | ||
| 3 | namespace HansOtt\GraphQL\Query; |
|
| 4 | ||
| 5 | final class ValueInt extends NodeBase implements Value |
|
| 6 | { |
|
| 7 | public $value; |
|
| 8 | ||
| 9 | public function __construct($value, Location $location = null) |
|
| 10 | { |
|
| 11 | parent::__construct($location); |
|
| 12 | $this->value = (int) $value; |
|
| 13 | } |
|
| 14 | ||
| 15 | public function getChildren() |
|
| 16 | { |
|
| 17 | return array(); |
|
| 18 | } |
|
| 19 | } |
|
| 20 | ||
| @@ 5-19 (lines=15) @@ | ||
| 2 | ||
| 3 | namespace HansOtt\GraphQL\Query; |
|
| 4 | ||
| 5 | final class ValueString extends NodeBase implements Value |
|
| 6 | { |
|
| 7 | public $value; |
|
| 8 | ||
| 9 | public function __construct($value, Location $location = null) |
|
| 10 | { |
|
| 11 | parent::__construct($location); |
|
| 12 | $this->value = (string) $value; |
|
| 13 | } |
|
| 14 | ||
| 15 | public function getChildren() |
|
| 16 | { |
|
| 17 | return array(); |
|
| 18 | } |
|
| 19 | } |
|
| 20 | ||