PurposeReaderRepository
in package
implements
PurposeReaderRepositoryInterface
Class PurposeReaderRepository
Interfaces, Classes and Traits
- PurposeReaderRepositoryInterface
- Interface PurposeReadRepositoryInterface
Table of Contents
- $factory : PurposeFactoryInterface
- $mapper : CategoryCategoryIdMapperInterface
- $reader : PurposeDatabaseReaderInterface
- $languageProvider : LanguageProviderInterface
- __construct() : mixed
- PurposeReaderRepository constructor.
- activePurposes() : array<string|int, PurposeInterface>
- allPurposes() : array<string|int, PurposeInterface>
- categories() : array<string|int, CategoryInterface>
Properties
$factory
protected
PurposeFactoryInterface
$factory
$mapper
protected
CategoryCategoryIdMapperInterface
$mapper
$reader
protected
PurposeDatabaseReaderInterface
$reader
$languageProvider
private
LanguageProviderInterface
$languageProvider
Methods
__construct()
PurposeReaderRepository constructor.
public
__construct(PurposeDatabaseReaderInterface $reader, PurposeFactoryInterface $factory, CategoryCategoryIdMapperInterface $mapper, LanguageProviderInterface $languageProvider) : mixed
Parameters
- $reader : PurposeDatabaseReaderInterface
- $factory : PurposeFactoryInterface
- $mapper : CategoryCategoryIdMapperInterface
- $languageProvider : LanguageProviderInterface
Return values
mixed —activePurposes()
public
activePurposes(int $languageId) : array<string|int, PurposeInterface>
Parameters
- $languageId : int
Tags
Return values
array<string|int, PurposeInterface> —allPurposes()
public
allPurposes() : array<string|int, PurposeInterface>
Tags
Return values
array<string|int, PurposeInterface> —categories()
public
categories(int $languageId) : array<string|int, CategoryInterface>
Parameters
- $languageId : int