| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | abstract class AbstractSalesPeriod extends SalesPeriod implements SalesPeriodInterface |
||
| 18 | { |
||
| 19 | /** @var int */ |
||
| 20 | private $year; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param null|int $year |
||
| 24 | * @throws ReflectionException |
||
| 25 | */ |
||
| 26 | public function __construct($year = null) |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return int |
||
| 45 | */ |
||
| 46 | public function getYear() |
||
| 47 | { |
||
| 48 | return $this->year; |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param int $year |
||
| 53 | */ |
||
| 54 | public function setYear($year): void |
||
| 57 | } |
||
| 58 | } |
||
| 59 |