123456789101112131415161718192021222324252627282930 |
- <?php
- namespace Doctrine\Persistence\Event;
- use Doctrine\Common\EventArgs;
- use Doctrine\Persistence\ObjectManager;
- /**
- * Provides event arguments for the preFlush event.
- */
- class ManagerEventArgs extends EventArgs
- {
- /** @var ObjectManager */
- private $objectManager;
- public function __construct(ObjectManager $objectManager)
- {
- $this->objectManager = $objectManager;
- }
- /**
- * Retrieves the associated ObjectManager.
- *
- * @return ObjectManager
- */
- public function getObjectManager()
- {
- return $this->objectManager;
- }
- }
|