File "OnClearEventArgs.php"
Full Path: /home/warrior1/public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Event/OnClearEventArgs.php
File size: 639 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
declare (strict_types=1);
namespace MailPoetVendor\Doctrine\ORM\Event;
if (!defined('ABSPATH')) exit;
use MailPoetVendor\Doctrine\Common\EventArgs;
use MailPoetVendor\Doctrine\ORM\EntityManagerInterface;
class OnClearEventArgs extends EventArgs
{
private $em;
private $entityClass;
public function __construct(EntityManagerInterface $em, $entityClass = null)
{
$this->em = $em;
$this->entityClass = $entityClass;
}
public function getEntityManager()
{
return $this->em;
}
public function getEntityClass()
{
return $this->entityClass;
}
public function clearsAllEntities()
{
return $this->entityClass === null;
}
}