| 1 | <?php |
||
| 18 | class RegisterTransformersEvent extends Event |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @event Event an event that is triggered when the transformers are registered. |
||
| 22 | */ |
||
| 23 | const REGISTER_TRANSFORMERS = 'registerTransformer'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $scope |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public static function eventName(string $scope = Flux::GLOBAL_SCOPE) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * The transformer which will be used to alter data. Keep in mind that multiple listeners may be registered on this |
||
| 36 | * event and therefore can alter this value before/after. |
||
| 37 | * |
||
| 38 | * The returning array should be formatted as ['identifier' => transformer'] |
||
| 39 | * |
||
| 40 | * |
||
| 41 | * @var array |
||
| 42 | */ |
||
| 43 | public $transformers = []; |
||
| 44 | } |
||
| 45 |