| 1 | <?php |
||
| 18 | class DateTimeProcessor implements ProcessorInterface |
||
| 19 | { |
||
| 20 | use InvokeProcessor; |
||
| 21 | |||
| 22 | const FORMAT = 'Y-m-d H:i:s'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $format; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string|null $format Custom DateTime format to use (Defaults to: Y-m-d H:i:s) |
||
| 31 | */ |
||
| 32 | 33 | public function __construct($format = null) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @param array $row |
||
| 39 | * |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | 23 | public function process(array $row) |
|
| 52 | } |
||
| 53 |