| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function getValue() |
||
| 41 | { |
||
| 42 | $model = $this->getModel(); |
||
| 43 | $value = $this->getDefaultValue(); |
||
| 44 | if (is_null($model) || !$model->exists) { |
||
| 45 | return $value; |
||
| 46 | } |
||
| 47 | |||
| 48 | return [ |
||
| 49 | $this->dateToString($model->getAttribute($this->getStartName())), |
||
| 50 | $this->dateToString($model->getAttribute($this->getEndName())), |
||
| 51 | ]; |
||
| 52 | } |
||
| 53 | |||
| 70 |