| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function __construct($name) |
||
| 10 | {
|
||
| 11 | parent::__construct($name); |
||
| 12 | |||
| 13 | $formElement = new \Zend\Form\Element\DateTime($this->getName()); |
||
| 14 | $formElement->setOptions(['format' => 'Y-m-d H:i:s']); |
||
| 15 | |||
| 16 | $this->setFormElement($formElement) |
||
| 17 | ->addDecorator(new Decorator\DateFormat()); |
||
| 18 | } |
||
| 19 | } |