mediatekformation

LoadClassMetadataEventArgs extends EventArgs
in package

Class that holds event arguments for a loadMetadata event.

Table of Contents

$_emptyEventArgsInstance  : EventArgs
Single instance of EventArgs.
$classMetadata  : ClassMetadata
$objectManager  : ObjectManager
__construct()  : mixed
getClassMetadata()  : ClassMetadata
Retrieves the associated ClassMetadata.
getEmptyInstance()  : EventArgs
Gets the single, empty and immutable EventArgs instance.
getObjectManager()  : ObjectManager
Retrieves the associated ObjectManager.

Properties

$_emptyEventArgsInstance

Single instance of EventArgs.

private static EventArgs $_emptyEventArgsInstance

$classMetadata

private ClassMetadata $classMetadata
Tags
psalm-var

ClassMetadata

Methods

__construct()

public __construct(ClassMetadata $classMetadata, ObjectManager $objectManager) : mixed
Parameters
$classMetadata : ClassMetadata
$objectManager : ObjectManager
Tags
psalm-param

ClassMetadata $classMetadata

Return values
mixed

getClassMetadata()

Retrieves the associated ClassMetadata.

public getClassMetadata() : ClassMetadata
Tags
psalm-return

ClassMetadata

Return values
ClassMetadata

getEmptyInstance()

Gets the single, empty and immutable EventArgs instance.

public static getEmptyInstance() : EventArgs

This instance will be used when events are dispatched without any parameter, like this: EventManager::dispatchEvent('eventname');

The benefit from this is that only one empty instance is instantiated and shared (otherwise there would be instances for every dispatched in the abovementioned form).

Tags
link
https://msdn.microsoft.com/en-us/library/system.eventargs.aspx
see
EventManager::dispatchEvent
Return values
EventArgs

Search results