class ManagerEventArgs

Provides event arguments for the preFlush event.

@license http://www.opensource.org/licenses/lgpl-license.php LGPL @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

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

Namespace

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

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

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

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

}

Members

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