| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function __construct($year, $quarter = null) |
||
| 31 | { |
||
| 32 | Assert::integerish($year); |
||
| 33 | Assert::greaterThan($year, 0); |
||
| 34 | |||
| 35 | Assert::nullOrIntegerish($quarter); |
||
| 36 | if ($quarter !== null) { |
||
| 37 | Assert::greaterThan($quarter, 0); |
||
| 38 | Assert::lessThanEq($quarter, 4); |
||
| 39 | |||
| 40 | } |
||
| 41 | |||
| 42 | $this->quarter = (int) $quarter; |
||
| 43 | $this->year = (int) $year; |
||
| 44 | } |
||
| 45 | |||
| 78 |