You are here

class ManagerEventArgs in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Event/ManagerEventArgs.php \Doctrine\Common\Persistence\Event\ManagerEventArgs

Provides event arguments for the preFlush event.

@link www.doctrine-project.org @since 2.2 @author Roman Borschel <roman@code-factory.de> @author Benjamin Eberlei <kontakt@beberlei.de>

Hierarchy

Expanded class hierarchy of ManagerEventArgs

File

vendor/doctrine/common/lib/Doctrine/Common/Persistence/Event/ManagerEventArgs.php, line 33

Namespace

Doctrine\Common\Persistence\Event
View source
class ManagerEventArgs extends EventArgs {

  /**
   * @var ObjectManager
   */
  private $objectManager;

  /**
   * Constructor.
   *
   * @param ObjectManager $objectManager
   */
  public function __construct(ObjectManager $objectManager) {
    $this->objectManager = $objectManager;
  }

  /**
   * Retrieves the associated ObjectManager.
   *
   * @return ObjectManager
   */
  public function getObjectManager() {
    return $this->objectManager;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EventArgs::$_emptyEventArgsInstance private static property Single instance of EventArgs.
EventArgs::getEmptyInstance public static function Gets the single, empty and immutable EventArgs instance.
ManagerEventArgs::$objectManager private property
ManagerEventArgs::getObjectManager public function Retrieves the associated ObjectManager.
ManagerEventArgs::__construct public function Constructor.