class LoadClassMetadataEventArgs

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

drupal/core/vendor/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;
  }

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

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