StaticPHPDriver
in package
implements
MappingDriver
The StaticPHPDriver calls a static loadMetadata() method on your entity classes where you can manually populate the ClassMetadata instance.
Interfaces, Classes, Traits and Enums
- MappingDriver
- Contract for metadata drivers.
Table of Contents
- $classNames : array<string|int, string>
- Map of all class names.
- $paths : array<string|int, string>
- Paths of entity directories.
- __construct() : mixed
- addPaths() : void
- Adds paths.
- getAllClassNames() : array<string|int, string>
- 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, string>
$classNames
Tags
$paths
Paths of entity directories.
private
array<string|int, string>
$paths
= []
Methods
__construct()
public
__construct(array<string|int, string>|string $paths) : mixed
Parameters
- $paths : array<string|int, string>|string
Return values
mixed —addPaths()
Adds paths.
public
addPaths(array<string|int, string> $paths) : void
Parameters
- $paths : array<string|int, string>
Return values
void —getAllClassNames()
Gets the names of all mapped classes known to this driver.
public
getAllClassNames() : array<string|int, string>
Tags
Return values
array<string|int, string> —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