MisterIcy /
excel-writer
| 1 | <?php |
||
| 2 | declare(strict_types=1); |
||
| 3 | |||
| 4 | namespace MisterIcy\ExcelWriter\Handlers; |
||
| 5 | |||
| 6 | use MisterIcy\ExcelWriter\Generator\BasicGenerator; |
||
| 7 | use MisterIcy\ExcelWriter\Generator\GeneratorInterface; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Class MetadataHandler |
||
| 11 | * @package MisterIcy\ExcelWriter\Handlers |
||
| 12 | */ |
||
| 13 | final class MetadataHandler extends AbstractHandler |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param BasicGenerator $generator |
||
| 17 | * @return HandlerInterface |
||
| 18 | */ |
||
| 19 | public function handle(GeneratorInterface $generator) |
||
| 20 | { |
||
| 21 | $spreadsheet = $generator->getSpreadsheet(); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 22 | $spreadsheet->getProperties() |
||
| 23 | ->setCreator('mistericy/excel-writer'); |
||
| 24 | |||
| 25 | return parent::handle($generator); // TODO: Change the autogenerated stub |
||
| 26 | } |
||
| 27 | } |
||
| 28 |