1 | <?php |
||
11 | class PaymentSchedule implements PaymentScheduleInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | private $paymentDates = array(); |
||
17 | |||
18 | /** |
||
19 | * @var PaymentScheduleConfigInterface |
||
20 | */ |
||
21 | private $config; |
||
22 | |||
23 | /** |
||
24 | * PaymentSchedule constructor. |
||
25 | * @param PaymentScheduleConfigInterface $config |
||
26 | */ |
||
27 | public function __construct(PaymentScheduleConfigInterface $config) |
||
31 | |||
32 | /** |
||
33 | * @param \DateTimeInterface $paymentDate |
||
34 | * @param null|int $paymentSequenceNo |
||
35 | */ |
||
36 | public function add(\DateTimeInterface $paymentDate, int $paymentSequenceNo = null): void |
||
40 | |||
41 | /** |
||
42 | * @return array |
||
43 | */ |
||
44 | public function getPaymentDates(): array |
||
48 | |||
49 | /** |
||
50 | * @return int |
||
51 | */ |
||
52 | public function getNoOfPayments(): int |
||
56 | |||
57 | /** |
||
58 | * @return PaymentScheduleConfigInterface |
||
59 | */ |
||
60 | public function getConfig(): PaymentScheduleConfigInterface |
||
64 | |||
65 | } |