Class that holds event arguments for a loadMetadata event.
@author Jonathan H. Wage <jonwage@gmail.com> @since 2.2
Expanded class hierarchy of LoadClassMetadataEventArgs
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;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EventArgs:: |
private static | property | ||
EventArgs:: |
public static | function | Gets the single, empty and immutable EventArgs instance. | |
LoadClassMetadataEventArgs:: |
private | property | ||
LoadClassMetadataEventArgs:: |
private | property | ||
LoadClassMetadataEventArgs:: |
public | function | Retrieve associated ClassMetadata. | |
LoadClassMetadataEventArgs:: |
public | function | Retrieve associated ObjectManager. | |
LoadClassMetadataEventArgs:: |
public | function | Constructor. |