| Total Complexity | 6 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class ConfigProvider implements ConfigProviderContract |
||
| 12 | { |
||
| 13 | private const EVENT_MAP_KEY = 'event_map'; |
||
| 14 | private const TABLES_KEY = 'tables'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var ConfigAccessor |
||
| 18 | */ |
||
| 19 | private $configAccessor; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * ConfigProvider constructor. |
||
| 23 | * |
||
| 24 | * @param ConfigAccessor $configAccessor |
||
| 25 | */ |
||
| 26 | public function __construct(ConfigAccessor $configAccessor) |
||
| 27 | { |
||
| 28 | $this->configAccessor = $configAccessor; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $statusIdentifier |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function getEventsForStatus(string $statusIdentifier): array |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $key |
||
| 50 | * |
||
| 51 | * @throws TableNameNotFound |
||
| 52 | * |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getTableNameByKey(string $key): string |
||
| 65 | } |
||
| 66 | } |
||
| 67 |