for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Digia\GraphQL\Language\Node;
use Digia\GraphQL\Language\Location;
class ArgumentNode extends AbstractNode implements NameAwareInterface
{
use NameTrait;
use ValueLiteralTrait;
/**
* ArgumentNode constructor.
*
* @param NameNode $name
* @param ValueNodeInterface $value
* @param Location|null $location
*/
public function __construct(NameNode $name, ValueNodeInterface $value, ?Location $location)
parent::__construct(NodeKindEnum::ARGUMENT, $location);
$this->name = $name;
$this->value = $value;
}
* @return array
public function toAST(): array
return [
'kind' => $this->kind,
'name' => $this->getNameAST(),
'value' => $this->getValueAST(),
'loc' => $this->getLocationAST(),
];