VPERepository

Implements \VPERepositoryInterface

Class VPERepository

category

System

package

VPE

subpackage

Repositories

Methods

VPERepository constructor.

__construct(\VPEStorageInterface $storage, \VPEFactory $factory, \LanguageProvider $languageProvider) 

Arguments

$factory

\VPEFactory

$languageProvider

\LanguageProvider

Creates VPE entity.

createVPE() : \VPE

Response

\VPE

New VPE entity.

Deletes VPE entity from database.

delete(\VPEInterface $vpe) : \VPERepositoryInterface

Arguments

$vpe

\VPEInterface

VPE entity to be deleted.

Response

\VPERepositoryInterface

Same instance for chained method calls.

Returns all VPE entities as collection.

getAll() : \VPECollection

Response

\VPECollection

VPE collection.

Returns VPE entity by the given id.

getById(\IdType $vpeId) : \VPEInterface
Throws
\EntityNotFoundException

Arguments

$vpeId

\IdType

IdType of entity to be returned.

Response

\VPEInterface

Saves VPE entity in database.

save(\VPEInterface $vpe) : \VPERepositoryInterface

Arguments

$vpe

\VPEInterface

Vpe entity to be save.

Response

\VPERepositoryInterface

Same instance for chained method calls.

Properties

storage

storage : \VPEStorageInterface
var

Type(s)

\VPEStorageInterface

factory

factory : \VPEFactory
var

Type(s)

\VPEFactory

languageProvider

languageProvider : \LanguageProvider
var

Type(s)

\LanguageProvider