class OnClassMetadataNotFoundEventArgs extends ManagerEventArgs (View source)

Class that holds event arguments for a onClassMetadataNotFound event.

This object is mutable by design, allowing callbacks having access to it to set the found metadata in it, and therefore "cancelling" a onClassMetadataNotFound event

Methods

__construct(string $className, ObjectManager $objectManager)

Constructor.

setFoundMetadata(ClassMetadata $classMetadata = null)

No description

ClassMetadata|null
getFoundMetadata()

No description

string
getClassName()

Retrieve class name for which a failed metadata fetch attempt was executed

Details

__construct(string $className, ObjectManager $objectManager)

Constructor.

Parameters

string $className
ObjectManager $objectManager

setFoundMetadata(ClassMetadata $classMetadata = null)

Parameters

ClassMetadata $classMetadata

ClassMetadata|null getFoundMetadata()

Return Value

ClassMetadata|null

string getClassName()

Retrieve class name for which a failed metadata fetch attempt was executed

Return Value

string