for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*******************************************************************************
* This file is part of the GraphQL Bundle package.
*
* (c) YnloUltratech <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
******************************************************************************/
namespace Ynlo\GraphQLBundle\Events;
use Symfony\Component\EventDispatcher\Event;
class GraphQLFieldEvent extends Event
{
/**
* @var GraphQLFieldInfo
*/
protected $info;
* @var mixed
protected $root;
* @var array
protected $args = [];
* @var mixed|null
protected $context;
protected $value;
* GraphQLFieldEvent constructor.
* @param GraphQLFieldInfo $info
* @param mixed $root
* @param array $args
* @param mixed|null $context
* @param mixed|null $value
public function __construct(GraphQLFieldInfo $info, $root, array $args, $context = null, $value = null)
$this->info = $info;
$this->root = $root;
$this->args = $args;
$this->context = $context;
$this->value = $value;
}
* @return GraphQLFieldInfo
public function getInfo(): GraphQLFieldInfo
return $this->info;
* @return mixed
public function getRoot()
return $this->root;
* @return array
public function getArgs(): array
return $this->args;
* @return mixed|null
public function getContext()
return $this->context;
public function getValue()
return $this->value;
* @param mixed $value
public function setValue($value): void