You are here

class ManagerEventArgs in Plug 7

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

lib/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.