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 Doctrine\ORM\EntityManagerInterface;
/**
* @author Alex Patterson <[email protected]>
* @package Arp\DoctrineEntityRepository\Persistence\Event
*/
class EntityErrorEvent extends AbstractEntityEvent
{
* @var \Throwable
private $exception;
* @param string $eventName
* @param string $entityName
* @param EntityManagerInterface $entityManager
* @param \Throwable $exception
* @param array $params
public function __construct(
string $eventName,
string $entityName,
EntityManagerInterface $entityManager,
\Throwable $exception,
array $params = []
) {
parent::__construct($eventName, $entityName, $entityManager, $params);
$this->exception = $exception;
}
* @return \Throwable
public function getException(): \Throwable
return $this->exception;
public function setException(\Throwable $exception): void