PHP Class Dumplie\Metadata\Infrastructure\InMemory\InMemoryStorage

Inheritance: implements Dumplie\Metadata\Storage
Mostrar archivo Open project: dumplie/dumplie

Public Methods

Method Description
__construct ( )
alter ( Schema $schema )
create ( Schema $schema )
delete ( string $schema, string $typeName, string $id )
diff ( Schema $schema ) : ChangeSet
drop ( Schema $schema )
findBy ( string $schema, string $typeName, array $criteria = [] ) : array
has ( string $schema, string $typeName, string $id ) : boolean
save ( string $schema, string $typeName, string $id, array $metadata = [] )

Private Methods

Method Description
matchesCriteria ( array $criteria, array $metadata ) : boolean
schemaExists ( string $schema ) : boolean
typeExists ( string $schema, string $typeName ) : boolean

Method Details

__construct() public method

public __construct ( )

alter() public method

public alter ( Schema $schema )
$schema Dumplie\Metadata\Schema

create() public method

public create ( Schema $schema )
$schema Dumplie\Metadata\Schema

delete() public method

public delete ( string $schema, string $typeName, string $id )
$schema string
$typeName string
$id string

diff() public method

public diff ( Schema $schema ) : ChangeSet
$schema Dumplie\Metadata\Schema
return Dumplie\Metadata\Schema\ChangeSet

drop() public method

public drop ( Schema $schema )
$schema Dumplie\Metadata\Schema

findBy() public method

public findBy ( string $schema, string $typeName, array $criteria = [] ) : array
$schema string
$typeName string
$criteria array
return array

has() public method

public has ( string $schema, string $typeName, string $id ) : boolean
$schema string
$typeName string
$id string
return boolean

save() public method

public save ( string $schema, string $typeName, string $id, array $metadata = [] )
$schema string
$typeName string
$id string
$metadata array