StaticPHPDriver
in package
implements
MappingDriver
The StaticPHPDriver calls a static loadMetadata() method on your entity classes where you can manually populate the ClassMetadata instance.
Tags
Interfaces, Classes and Traits
- MappingDriver
- Contract for metadata drivers.
Table of Contents
- $classNames : array<string|int, mixed>
- Map of all class names.
- $paths : array<string|int, mixed>
- Paths of entity directories.
- __construct() : mixed
- Constructor.
- addPaths() : void
- Adds paths.
- getAllClassNames() : array<string|int, mixed>
- Gets the names of all mapped classes known to this driver.
- isTransient() : bool
- Returns whether the class with the specified name should have its metadata loaded.
- loadMetadataForClass() : void
- Loads the metadata for the specified class into the provided container.
Properties
$classNames
Map of all class names.
private
array<string|int, mixed>
$classNames
$paths
Paths of entity directories.
private
array<string|int, mixed>
$paths
= []
Methods
__construct()
Constructor.
public
__construct(array<string|int, mixed>|string $paths) : mixed
Parameters
- $paths : array<string|int, mixed>|string
Return values
mixed —addPaths()
Adds paths.
public
addPaths(array<string|int, mixed> $paths) : void
Parameters
- $paths : array<string|int, mixed>
Return values
void —getAllClassNames()
Gets the names of all mapped classes known to this driver.
public
getAllClassNames() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —The names of all mapped classes known to this driver.
isTransient()
Returns whether the class with the specified name should have its metadata loaded.
public
isTransient(mixed $className) : bool
Parameters
- $className : mixed
Return values
bool —loadMetadataForClass()
Loads the metadata for the specified class into the provided container.
public
loadMetadataForClass(mixed $className, ClassMetadata $metadata) : void
Parameters
- $className : mixed
- $metadata : ClassMetadata