Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
wp-content
/
plugins
/
mailpoet
/
vendor-prefixed
/
doctrine
/
orm
/
lib
/
Doctrine
/
ORM
/
Event
:
OnClearEventArgs.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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; } }