| Total Complexity | 2 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class EqualLengthMonthes extends AbstractDatePartsSolarSplitter |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Leap year calculator. |
||
| 15 | * |
||
| 16 | * @var CompleteLeapYearCalculatorInterface |
||
| 17 | */ |
||
| 18 | protected $calculator; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Month length. |
||
| 22 | * |
||
| 23 | * @var integer |
||
| 24 | */ |
||
| 25 | protected $length; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Class constructor. |
||
| 29 | * |
||
| 30 | * @param CompleteLeapYearCalculatorInterface $calculator Leap year calculator. |
||
| 31 | * @param integer $length Month length. |
||
| 32 | */ |
||
| 33 | public function __construct(CompleteLeapYearCalculatorInterface $calculator, $length) |
||
| 34 | { |
||
| 35 | $this->calculator = $calculator; |
||
| 36 | $this->length = $length; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritDoc |
||
| 41 | */ |
||
| 42 | protected function getAllFragmentSizes(DateFragmentedRepresentationInterface $input) |
||
| 53 | } |
||
| 54 | } |
||
| 55 |