App control
This commit is contained in:
18
app/Alias/Excel/Style/Mes.php
Normal file
18
app/Alias/Excel/Style/Mes.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace App\Alias\Excel\Style;
|
||||
|
||||
use Slam\Excel\Helper\CellStyleInterface;
|
||||
use Slam\Excel\Pear\Writer\Format;
|
||||
|
||||
class Mes implements CellStyleInterface
|
||||
{
|
||||
public function decorateValue($value)
|
||||
{
|
||||
return $value;
|
||||
}
|
||||
public function styleCell(Format $format): void
|
||||
{
|
||||
$format->setNumFormat('mmm-YY');
|
||||
$format->setAlign('center');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user