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 IntValueNode extends AbstractNode implements ValueNodeInterface, ValueAwareInterface
{
use ValueTrait;
/**
* FloatValueNode constructor.
*
* @param mixed $value
* @param Location|null $location
*/
public function __construct($value, ?Location $location)
parent::__construct(NodeKindEnum::INT, $location);
$this->value = $value;
}
* @inheritdoc
public function toAST(): array
return [
'kind' => $this->kind,
'loc' => $this->getLocationAST(),
'value' => $this->value,
];