ClassMetadataFactory
in package
implements
ClassMetadataFactoryInterface
Uses
ClassResolverTrait
Returns a {@link ClassMetadata}.
Tags
Interfaces, Classes, Traits and Enums
- ClassMetadataFactoryInterface
- Returns a {@see ClassMetadataInterface}.
Table of Contents
- $loadedClasses : array<string|int, mixed>
- $loader : mixed
- __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
$loadedClasses
private
array<string|int, mixed>
$loadedClasses
$loader
private
mixed
$loader
Methods
__construct()
public
__construct(LoaderInterface $loader) : mixed
Parameters
- $loader : LoaderInterface
Return values
mixed —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(mixed $value) : ClassMetadataInterface
Parameters
- $value : mixed
Return values
ClassMetadataInterface —hasMetadataFor()
Checks if class has metadata.
public
hasMetadataFor(mixed $value) : bool
Parameters
- $value : mixed