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 ArrayObject;
use League\Event\HasEventName;
/**
* This event is fired each time an entity GraphQL type is created
*/
class EntityDefinition implements
HasEventName
{
/** @param ArrayObject $definition<'description'|'fields'|'name'|'resolveField', mixed> */
public function __construct(
protected readonly ArrayObject $definition,
protected readonly string $eventName,
) {
}
public function eventName(): string
return $this->eventName;
public function getDefinition(): ArrayObject
return $this->definition;