Class VPERepository

Class VPERepository

VPERepository implements VPERepositoryInterface

Methods summary

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

VPERepository constructor.

public getById( IdType $vpeId ) : VPEInterface

Returns VPE entity by the given id.

public getAll( void ) : VPECollection

Returns all VPE entities as collection.

public save( VPEInterface $vpe ) : VPERepositoryInterface

Saves VPE entity in database.

public delete( VPEInterface $vpe ) : VPERepositoryInterface

Deletes VPE entity from database.

public createVPE( void ) : VPE

Creates VPE entity.