src/Language/Node/ListType.php 1 location
|
@@ 8-22 (lines=15) @@
|
| 5 |
|
use Fubhy\GraphQL\Language\Location; |
| 6 |
|
use Fubhy\GraphQL\Language\Node; |
| 7 |
|
|
| 8 |
|
class ListType extends Node implements TypeInterface |
| 9 |
|
{ |
| 10 |
|
const KIND = Node::KIND_LIST_TYPE; |
| 11 |
|
|
| 12 |
|
/** |
| 13 |
|
* Constructor. |
| 14 |
|
* |
| 15 |
|
* @param \Fubhy\GraphQL\Language\Node\TypeInterface $type |
| 16 |
|
* @param \Fubhy\GraphQL\Language\Location $location |
| 17 |
|
*/ |
| 18 |
|
public function __construct(TypeInterface $type, Location $location = NULL) |
| 19 |
|
{ |
| 20 |
|
parent::__construct($location, ['type' => $type]); |
| 21 |
|
} |
| 22 |
|
} |
| 23 |
|
|
src/Language/Node/Name.php 1 location
|
@@ 8-22 (lines=15) @@
|
| 5 |
|
use Fubhy\GraphQL\Language\Location; |
| 6 |
|
use Fubhy\GraphQL\Language\Node; |
| 7 |
|
|
| 8 |
|
class Name extends Node implements TypeInterface |
| 9 |
|
{ |
| 10 |
|
const KIND = Node::KIND_NAME; |
| 11 |
|
|
| 12 |
|
/** |
| 13 |
|
* Constructor. |
| 14 |
|
* |
| 15 |
|
* @param string $value |
| 16 |
|
* @param \Fubhy\GraphQL\Language\Location $location |
| 17 |
|
*/ |
| 18 |
|
public function __construct($value, Location $location = NULL) |
| 19 |
|
{ |
| 20 |
|
parent::__construct($location, ['value' => $value]); |
| 21 |
|
} |
| 22 |
|
} |
| 23 |
|
|
src/Language/Node/NamedType.php 1 location
|
@@ 8-22 (lines=15) @@
|
| 5 |
|
use Fubhy\GraphQL\Language\Location; |
| 6 |
|
use Fubhy\GraphQL\Language\Node; |
| 7 |
|
|
| 8 |
|
class NamedType extends Node implements TypeInterface |
| 9 |
|
{ |
| 10 |
|
const KIND = Node::KIND_NAMED_TYPE; |
| 11 |
|
|
| 12 |
|
/** |
| 13 |
|
* Constructor. |
| 14 |
|
* |
| 15 |
|
* @param string $name |
| 16 |
|
* @param \Fubhy\GraphQL\Language\Location $location |
| 17 |
|
*/ |
| 18 |
|
public function __construct($name, Location $location = NULL) |
| 19 |
|
{ |
| 20 |
|
parent::__construct($location, ['name' => $name]); |
| 21 |
|
} |
| 22 |
|
} |
| 23 |
|
|