CompiledClassMetadataFactory
in package
implements
ClassMetadataFactoryInterface
FinalYes
Tags
Table of Contents
Interfaces
- ClassMetadataFactoryInterface
- Returns a {@see ClassMetadataInterface}.
Properties
- $classMetadataFactory : mixed
- $compiledClassMetadata : mixed
- $loadedClasses : mixed
Methods
- __construct() : mixed
- getMetadataFor() : ClassMetadataInterface
- If the method was called with the same class name (or an object of that class) before, the same metadata instance is returned.
- hasMetadataFor() : bool
- Checks if class has metadata.
Properties
$classMetadataFactory
private
mixed
$classMetadataFactory
$compiledClassMetadata
private
mixed
$compiledClassMetadata
= []
$loadedClasses
private
mixed
$loadedClasses
= []
Methods
__construct()
public
__construct(string $compiledClassMetadataFile, ClassMetadataFactoryInterface $classMetadataFactory) : mixed
Parameters
- $compiledClassMetadataFile : string
- $classMetadataFactory : ClassMetadataFactoryInterface
getMetadataFor()
If the method was called with the same class name (or an object of that class) before, the same metadata instance is returned.
public
getMetadataFor(string|object $value) : ClassMetadataInterface
Parameters
- $value : string|object
Return values
ClassMetadataInterfacehasMetadataFor()
Checks if class has metadata.
public
hasMetadataFor(mixed $value) : bool
Parameters
- $value : mixed