1) { Deprecation::trigger( 'doctrine/persistence', 'https://github.com/doctrine/persistence/pull/270', 'The second argument of %s is deprecated and will be removed in 3.0.', __METHOD__ ); } $this->objectManager = $objectManager; $this->entityClass = $entityClass; } /** * Retrieves the associated ObjectManager. * * @return ObjectManager * @psalm-return TObjectManager */ public function getObjectManager() { return $this->objectManager; } /** * @deprecated no replacement planned * Returns the name of the entity class that is cleared, or null if all are cleared. * * @return string|null */ public function getEntityClass() { Deprecation::trigger( 'doctrine/persistence', 'https://github.com/doctrine/persistence/pull/270', '%s is deprecated and will be removed in 3.0', __METHOD__ ); return $this->entityClass; } /** * @deprecated no replacement planned * Returns whether this event clears all entities. * * @return bool */ public function clearsAllEntities() { Deprecation::trigger( 'doctrine/persistence', 'https://github.com/doctrine/persistence/pull/270', '%s is deprecated and will be removed in 3.0', __METHOD__ ); return $this->entityClass === null; } }