Inheritance: implements Youshido\GraphQL\Parser\Ast\Interfaces\LocatableInterface
Esempio n. 1
0
 /**
  * @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;
 }
Esempio n. 2
0
 /**
  * @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;
 }
Esempio n. 3
0
 /**
  * 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;
 }
Esempio n. 4
0
 /**
  * @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;
 }
Esempio n. 5
0
 /**
  * @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;
 }
Esempio n. 6
0
 /**
  * @param array    $object
  * @param Location $location
  */
 public function __construct(array $object, Location $location)
 {
     parent::__construct($location);
     $this->object = $object;
 }
 /**
  * @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;
 }
Esempio n. 8
0
 /**
  * @param mixed $value
  * @param Location $location
  */
 public function __construct($value, Location $location)
 {
     parent::__construct($location);
     $this->value = $value;
 }
Esempio n. 9
0
 /**
  * @param string   $name
  * @param Location $location
  */
 public function __construct($name, Location $location)
 {
     parent::__construct($location);
     $this->name = $name;
 }
Esempio n. 10
0
 /**
  * @param array    $list
  * @param Location $location
  */
 public function __construct(array $list, Location $location)
 {
     parent::__construct($location);
     $this->list = $list;
 }
Esempio n. 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;
 }