ModuleCenterRepository
in package
Class ModuleCenterRepository
Tags
Table of Contents
- $mapper : ConfigurationMapper
- $reader : ConfigurationDbReader
- $typeRepository : TypeRepository
- __construct() : mixed
- ModuleCenterRepository constructor.
- getByKey() : Configuration
- Returns the configuration for the provided key.
Properties
$mapper
private
ConfigurationMapper
$mapper
$reader
private
ConfigurationDbReader
$reader
$typeRepository
private
TypeRepository
$typeRepository
Methods
__construct()
ModuleCenterRepository constructor.
public
__construct(ConfigurationDbReader $reader, ConfigurationMapper $mapper, TypeRepository $typeRepository) : mixed
Parameters
- $reader : ConfigurationDbReader
- $mapper : ConfigurationMapper
- $typeRepository : TypeRepository
Return values
mixed —getByKey()
Returns the configuration for the provided key.
public
getByKey(string $key) : Configuration
If nothing was found, a configuration is returned with error information as value.
Parameters
- $key : string