This repository has been archived by the owner on Apr 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
1,662 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Changelog | ||
|
||
All Notable changes to `hansott/graphql-language` will be documented in this file. | ||
See [releases](https://github.com/hansott/graphql-language/releases). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace HansOtt\GraphQL\Schema; | ||
|
||
final class Argument extends NodeBase | ||
{ | ||
public $name; | ||
public $type; | ||
public $defaultValue; | ||
|
||
/** | ||
* @param string $name | ||
* @param Type $type | ||
* @param Value|null $defaultValue | ||
* @param Location|null $location | ||
*/ | ||
public function __construct($name, Type $type, Value $defaultValue = null, Location $location = null) | ||
{ | ||
parent::__construct($location); | ||
$this->name = (string) $name; | ||
$this->type = $type; | ||
$this->defaultValue = $defaultValue; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace HansOtt\GraphQL\Schema; | ||
|
||
interface Declaration extends Node | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace HansOtt\GraphQL\Schema; | ||
|
||
final class DeclarationEnum extends NodeBase implements Declaration | ||
{ | ||
public $name; | ||
public $possibleValues; | ||
|
||
/** | ||
* @param string $name | ||
* @param string[] $possibleValues | ||
* @param Location|null $location | ||
*/ | ||
public function __construct($name, array $possibleValues, Location $location = null) | ||
{ | ||
parent::__construct($location); | ||
$this->name = $name; | ||
$this->possibleValues = $possibleValues; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace HansOtt\GraphQL\Schema; | ||
|
||
final class DeclarationInputObject extends NodeBase implements Declaration | ||
{ | ||
public $name; | ||
public $fields; | ||
|
||
/** | ||
* @param string $name | ||
* @param array $fields | ||
* @param Location|null $location | ||
*/ | ||
public function __construct($name, array $fields, Location $location = null) | ||
{ | ||
parent::__construct($location); | ||
$this->name = $name; | ||
$this->fields = $fields; | ||
} | ||
|
||
public function getChildren() | ||
{ | ||
return $this->fields; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace HansOtt\GraphQL\Schema; | ||
|
||
final class DeclarationInterface extends NodeBase implements Declaration | ||
{ | ||
public $name; | ||
public $fields; | ||
|
||
/** | ||
* @param string $name | ||
* @param Field[] $fields | ||
* @param Location|null $location | ||
*/ | ||
public function __construct($name, array $fields, Location $location = null) | ||
{ | ||
parent::__construct($location); | ||
$this->name = (string) $name; | ||
$this->fields = $fields; | ||
} | ||
|
||
public function getChildren() | ||
{ | ||
return $this->fields; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace HansOtt\GraphQL\Schema; | ||
|
||
final class DeclarationObject extends NodeBase implements Declaration | ||
{ | ||
public $name; | ||
public $fields; | ||
public $interface; | ||
|
||
/** | ||
* @param string $name | ||
* @param Field[] $fields | ||
* @param string $interface | ||
* @param Location|null $location | ||
*/ | ||
public function __construct($name, array $fields, $interface = null, Location $location = null) | ||
{ | ||
parent::__construct($location); | ||
$this->name = (string) $name; | ||
$this->fields = $fields; | ||
$this->interface = $interface; | ||
} | ||
|
||
public function getChildren() | ||
{ | ||
return $this->fields; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace HansOtt\GraphQL\Schema; | ||
|
||
final class DeclarationUnion extends NodeBase implements Declaration | ||
{ | ||
public $name; | ||
public $members; | ||
|
||
/** | ||
* @param string $name | ||
* @param string[] $members | ||
* @param Location|null $location | ||
*/ | ||
public function __construct($name, array $members, Location $location = null) | ||
{ | ||
parent::__construct($location); | ||
$this->name = (string) $name; | ||
$this->members = $members; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace HansOtt\GraphQL\Schema; | ||
|
||
final class Field extends NodeBase | ||
{ | ||
public $name; | ||
public $type; | ||
public $arguments; | ||
|
||
/** | ||
* @param string $name | ||
* @param Type $type | ||
* @param Argument[] $arguments | ||
* @param Location|null $location | ||
*/ | ||
public function __construct($name, Type $type, array $arguments = array(), Location $location = null) | ||
{ | ||
parent::__construct($location); | ||
$this->name = (string) $name; | ||
$this->type = $type; | ||
$this->arguments = $arguments; | ||
} | ||
|
||
public function getChildren() | ||
{ | ||
return $this->arguments; | ||
} | ||
} |
Oops, something went wrong.