| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function __construct($minutes = null) |
||
| 30 | { |
||
| 31 | if (!isset($minutes)) { |
||
| 32 | return; |
||
| 33 | } |
||
| 34 | |||
| 35 | $this->minutes = $minutes; |
||
| 36 | |||
| 37 | if ($minutes instanceof self) { |
||
| 38 | $this->start = $minutes->getStart(); |
||
| 39 | |||
| 40 | $this->end = $minutes->getEnd(); |
||
| 41 | } else { |
||
| 42 | $this->calculateStartEnd(); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 120 |