1 | <?php |
||
12 | class PaymentPeriodsFactory implements PaymentPeriodsFactoryInterface |
||
13 | { |
||
14 | /** |
||
15 | * @param PaymentScheduleInterface $paymentSchedule |
||
16 | * @return PaymentPeriodsInterface |
||
17 | */ |
||
18 | 3 | public static function generate(PaymentScheduleInterface $paymentSchedule): PaymentPeriodsInterface |
|
36 | |||
37 | /** |
||
38 | * @param \DateTimeInterface $periodStart |
||
39 | * @return \DateTimeInterface |
||
40 | */ |
||
41 | 3 | private static function calculatePeriodStart(\DateTimeInterface $periodStart): \DateTimeInterface |
|
49 | |||
50 | /** |
||
51 | * @param \DateTimeInterface $paymentDate |
||
52 | * @return \DateTimeInterface |
||
53 | */ |
||
54 | 3 | private static function calculatePeriodEnd(\DateTimeInterface $paymentDate): \DateTimeInterface |
|
61 | } |
||
62 |