You are here

class LoadClassMetadataEventArgs in Plug 7

Class that holds event arguments for a loadMetadata event.

@author Jonathan H. Wage <jonwage@gmail.com> @since 2.2

Hierarchy

Expanded class hierarchy of LoadClassMetadataEventArgs

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/Event/LoadClassMetadataEventArgs.php, line 32

Namespace

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

  /**
   * @var ClassMetadata
   */
  private $classMetadata;

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

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

  /**
   * Retrieves the associated ClassMetadata.
   *
   * @return ClassMetadata
   */
  public function getClassMetadata() {
    return $this->classMetadata;
  }

  /**
   * 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.
LoadClassMetadataEventArgs::$classMetadata private property
LoadClassMetadataEventArgs::$objectManager private property
LoadClassMetadataEventArgs::getClassMetadata public function Retrieves the associated ClassMetadata.
LoadClassMetadataEventArgs::getObjectManager public function Retrieves the associated ObjectManager.
LoadClassMetadataEventArgs::__construct public function Constructor.