PHP Interface Bravo3\Orm\Mappers\Portation\MapWriterInterface

Show file Open project: bravo3/orm

Public Methods

Method Description
compileMetadataForEntity ( object $entity, string | null $resource = null ) : void Write metadata for a given entity, using the input EntityManager that must be preset
flush ( ) : void Compile and write all processed metadata
purge ( ) : void Purge the current buffer of unwritten content
setInputManager ( EntityManager $manager ) : void Set the input entity managed used for reading entities

Method Details

compileMetadataForEntity() public method

Write metadata for a given entity, using the input EntityManager that must be preset
public compileMetadataForEntity ( object $entity, string | null $resource = null ) : void
$entity object Entity with existing mapping data
$resource string | null File name to write data, if null a default or common value will be used
return void

flush() public method

Compile and write all processed metadata
public flush ( ) : void
return void

purge() public method

Purge the current buffer of unwritten content
public purge ( ) : void
return void

setInputManager() public method

Set the input entity managed used for reading entities
public setInputManager ( EntityManager $manager ) : void
$manager Bravo3\Orm\Services\EntityManager
return void