Youshido\GraphQL\Parser\Ast\Query::__construct PHP Method

__construct() public method

Query constructor.
public __construct ( string $name, string $alias = '', array $arguments, array $fields, Location $location )
$name string
$alias string
$arguments array
$fields array
$location Youshido\GraphQL\Parser\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;
    }