| 1 | <?php |
||
| 10 | class RisMappings implements RisMappingsInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | private $mappings; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $fallback; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * RisMappings constructor. |
||
| 24 | * @param array $mappings |
||
| 25 | * @param string $fallback |
||
| 26 | */ |
||
| 27 | public function __construct(array $mappings, string $fallback) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $type |
||
| 35 | * @return mixed |
||
| 36 | * @throws \Exception |
||
| 37 | */ |
||
| 38 | public function findRisFieldByType(string $type) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param $mappings |
||
| 56 | * @return array |
||
| 57 | */ |
||
| 58 | private function mappings(array $mappings) |
||
| 69 | } |
||
| 70 |