| 1 | <?php |
||
| 8 | class WithHeadersDecorator implements Transformer, WithHeadersContract |
||
| 9 | { |
||
| 10 | use WithHeadersTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var \Madewithlove\Export\Csv\Transformer |
||
| 14 | */ |
||
| 15 | private $wrapped; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * WithHeadersDecorator constructor. |
||
| 19 | * |
||
| 20 | * @param \Madewithlove\Export\Csv\Transformer $wrapped |
||
| 21 | * @param array $headers |
||
| 22 | */ |
||
| 23 | 4 | public function __construct(Transformer $wrapped, array $headers = []) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @param array $row |
||
| 31 | * |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | 2 | public function transform(array $row) |
|
| 38 | } |
||
| 39 |