Inheritance: implements Youshido\GraphQL\Parser\Ast\Interfaces\LocatableInterface
コード例 #1
0
ファイル: Fragment.php プロジェクト: youshido/graphql
 /**
  * @param string          $name
  * @param string          $model
  * @param Field[]|Query[] $fields
  * @param Location        $location
  */
 public function __construct($name, $model, array $fields, Location $location)
 {
     parent::__construct($location);
     $this->name = $name;
     $this->model = $model;
     $this->fields = $fields;
 }
コード例 #2
0
ファイル: Field.php プロジェクト: youshido/graphql
 /**
  * @param string   $name
  * @param string   $alias
  * @param array    $arguments
  * @param Location $location
  */
 public function __construct($name, $alias, $arguments, Location $location)
 {
     parent::__construct($location);
     $this->name = $name;
     $this->alias = $alias;
     $this->arguments = $arguments;
 }
コード例 #3
0
ファイル: Query.php プロジェクト: youshido/graphql
 /**
  * Query constructor.
  *
  * @param string   $name
  * @param string   $alias
  * @param array    $arguments
  * @param array    $fields
  * @param Location $location
  */
 public function __construct($name, $alias = '', array $arguments, array $fields, Location $location)
 {
     parent::__construct($location);
     $this->name = $name;
     $this->alias = $alias;
     $this->arguments = $arguments;
     $this->fields = $fields;
 }
コード例 #4
0
ファイル: Variable.php プロジェクト: youshido/graphql
 /**
  * @param string   $name
  * @param string   $type
  * @param bool     $nullable
  * @param bool     $isArray
  * @param Location $location
  */
 public function __construct($name, $type, $nullable, $isArray, Location $location)
 {
     parent::__construct($location);
     $this->name = $name;
     $this->type = $type;
     $this->isArray = $isArray;
     $this->nullable = $nullable;
 }
コード例 #5
0
ファイル: Argument.php プロジェクト: youshido/graphql
 /**
  * @param string         $name
  * @param ValueInterface $value
  * @param Location       $location
  */
 public function __construct($name, ValueInterface $value, Location $location)
 {
     parent::__construct($location);
     $this->name = $name;
     $this->value = $value;
 }
コード例 #6
0
ファイル: InputObject.php プロジェクト: youshido/graphql
 /**
  * @param array    $object
  * @param Location $location
  */
 public function __construct(array $object, Location $location)
 {
     parent::__construct($location);
     $this->object = $object;
 }
コード例 #7
0
 /**
  * @param string          $typeName
  * @param Field[]|Query[] $fields
  * @param Location        $location
  */
 public function __construct($typeName, array $fields, Location $location)
 {
     parent::__construct($location);
     $this->typeName = $typeName;
     $this->fields = $fields;
 }
コード例 #8
0
ファイル: Literal.php プロジェクト: youshido/graphql
 /**
  * @param mixed $value
  * @param Location $location
  */
 public function __construct($value, Location $location)
 {
     parent::__construct($location);
     $this->value = $value;
 }
コード例 #9
0
 /**
  * @param string   $name
  * @param Location $location
  */
 public function __construct($name, Location $location)
 {
     parent::__construct($location);
     $this->name = $name;
 }
コード例 #10
0
ファイル: InputList.php プロジェクト: youshido/graphql
 /**
  * @param array    $list
  * @param Location $location
  */
 public function __construct(array $list, Location $location)
 {
     parent::__construct($location);
     $this->list = $list;
 }
コード例 #11
0
 /**
  * @param string        $name
  * @param Variable|null $variable
  * @param Location      $location
  */
 public function __construct($name, Variable $variable = null, Location $location)
 {
     parent::__construct($location);
     $this->name = $name;
     $this->variable = $variable;
 }