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