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
- class \Doctrine\Common\EventArgs
- class \Doctrine\Common\Persistence\Event\LoadClassMetadataEventArgs
Expanded class hierarchy of LoadClassMetadataEventArgs
File
- lib/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Event/ LoadClassMetadataEventArgs.php, line 32
Namespace
Doctrine\Common\Persistence\EventView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EventArgs:: |
private static | property | Single instance of EventArgs. | |
EventArgs:: |
public static | function | Gets the single, empty and immutable EventArgs instance. | |
LoadClassMetadataEventArgs:: |
private | property | ||
LoadClassMetadataEventArgs:: |
private | property | ||
LoadClassMetadataEventArgs:: |
public | function | Retrieves the associated ClassMetadata. | |
LoadClassMetadataEventArgs:: |
public | function | Retrieves the associated ObjectManager. | |
LoadClassMetadataEventArgs:: |
public | function | Constructor. |