for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Arp\DoctrineEntityRepository\Persistence\Event;
use Arp\Entity\EntityInterface;
/**
* @author Alex Patterson <[email protected]>
* @package Arp\DoctrineEntityRepository\Persistence\Event
*/
class EntityEvent extends AbstractEntityEvent
{
* @var EntityInterface|null
private ?EntityInterface $entity = null;
* @return bool
public function hasEntity(): bool
return isset($this->entity);
}
* @return EntityInterface|null
public function getEntity(): ?EntityInterface
return $this->entity;
* @param EntityInterface|null $entity
public function setEntity(?EntityInterface $entity): void
$this->entity = $entity;