| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function __construct($uid, \DateTime $start, \DateTime $end) |
||
| 39 | { |
||
| 40 | if ($start->diff($end)->invert == 1) { |
||
| 41 | throw new \InvalidArgumentException('Events usually start before they end'); |
||
| 42 | } |
||
| 43 | |||
| 44 | $this->uid = $uid; |
||
| 45 | $this->begin = clone $start; |
||
| 46 | $this->end = clone $end; |
||
| 47 | } |
||
| 48 | |||
| 81 |