EntityMetadata
in package
Table of Contents
Properties
- $descriptor : EntityDescriptor
- $fields : array<string|int, mixed>|null
- The fields of this object
- $instances : array<string|int, PermanentEntity>
- Cache of all object instances
- $sqlAdapter : AbstractSqlAdapter
Methods
- __construct() : mixed
- EntityMetadata constructor
- cacheInstance() : void
- clearAllInstances() : void
- Remove all instances
- clearDeletedInstances() : void
- Remove deleted instances from cache
- getDescriptor() : EntityDescriptor
- getFields() : array<string|int, mixed>
- getInstance() : PermanentEntity|null
- getInstances() : array<string|int, mixed>
- getName() : string
- getSqlAdapter() : AbstractSqlAdapter
Properties
$descriptor
protected
EntityDescriptor
$descriptor
$fields
The fields of this object
protected
array<string|int, mixed>|null
$fields
= null
$instances
Cache of all object instances
protected
array<string|int, PermanentEntity>
$instances
= []
$sqlAdapter
protected
AbstractSqlAdapter
$sqlAdapter
Methods
__construct()
EntityMetadata constructor
public
__construct(EntityDescriptor $descriptor, AbstractSqlAdapter $sqlAdapter) : mixed
Parameters
- $descriptor : EntityDescriptor
- $sqlAdapter : AbstractSqlAdapter
cacheInstance()
public
cacheInstance(PermanentEntity $instance) : void
Parameters
- $instance : PermanentEntity
clearAllInstances()
Remove all instances
public
clearAllInstances() : void
clearDeletedInstances()
Remove deleted instances from cache
public
clearDeletedInstances() : void
getDescriptor()
public
getDescriptor() : EntityDescriptor
Return values
EntityDescriptorgetFields()
public
getFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getInstance()
public
getInstance(string $id) : PermanentEntity|null
Parameters
- $id : string
Return values
PermanentEntity|nullgetInstances()
public
getInstances() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
public
getName() : string
Return values
stringgetSqlAdapter()
public
getSqlAdapter() : AbstractSqlAdapter