| 1 | <?php |
||
| 17 | class MutatorsConfig extends InjectableConfig |
||
| 18 | { |
||
| 19 | use AliasTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Configuration section. |
||
| 23 | */ |
||
| 24 | const CONFIG = 'schemas/records'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | protected $config = [ |
||
| 30 | 'aliases' => [], |
||
| 31 | 'mutators' => [] |
||
| 32 | ]; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get list of mutators associated with given field type. |
||
| 36 | * |
||
| 37 | * @param string $type |
||
| 38 | * |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | public function getMutators(string $type): array |
||
| 48 | } |
||
| 49 |