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