| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | abstract class Transformer |
||
| 8 | { |
||
| 9 | use Configurable; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Connector constructor. |
||
| 13 | * |
||
| 14 | * @param array $config |
||
| 15 | */ |
||
| 16 | public function __construct($config = []) |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Boot Transformer. |
||
| 29 | */ |
||
| 30 | protected function boot() |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param array $data |
||
| 36 | * |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | abstract public function transform($data); |
||
| 40 | } |
||
| 41 |