ThemeRepository

Implements \ThemeRepositoryInterface

Class ThemeRepository

package

Default

Methods

ThemeRepository constructor.

__construct(\ThemeReaderInterface $reader, \ThemeWriterInterface $writer) 

Arguments

Returns available themes as collection.

getAvailableThemes(\ThemeDirectoryRootInterface $source) : \ThemeNameCollection

Returns the theme by given id.

getById(\ThemeId $id, \ThemeDirectoryRootInterface $source) : \ThemeInterface

Arguments

$id

\ThemeId

Response

\ThemeInterface

Saves the theme.

save(\ThemeInterface $theme, \ThemeDirectoryRootInterface $destination) : void

Arguments

Properties

reader

reader : \ThemeReaderInterface
var

Type(s)

\ThemeReaderInterface

writer

writer : \ThemeWriterInterface
var

Type(s)

\ThemeWriterInterface