for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ApiSkeletons\Doctrine\ORM\GraphQL\Event;
use Doctrine\ORM\QueryBuilder as DoctrineQueryBuilder;
use GraphQL\Type\Definition\ResolveInfo;
use League\Event\HasEventName;
/**
* This event is fired when the QueryBuilder is created for an entity
*/
class QueryBuilder implements
HasEventName
{
* @param string[] $entityAliasMap
* @param mixed[] $args
public function __construct(
protected DoctrineQueryBuilder $queryBuilder,
protected string $eventName,
protected mixed $objectValue,
protected array $args,
protected mixed $context,
protected ResolveInfo $info,
) {
}
public function eventName(): string
return $this->eventName;
public function getQueryBuilder(): DoctrineQueryBuilder
return $this->queryBuilder;
public function getObjectValue(): mixed
return $this->objectValue;
/** @return mixed[] */
public function getArgs(): array
return $this->args;
public function getContext(): mixed
return $this->context;
public function getInfo(): ResolveInfo
return $this->info;