Passed
Branch master (84c5d9)
by Kauri
02:53
created

PaymentScheduleInterface

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 25
ccs 0
cts 0
cp 0
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
__construct() 0 1 ?
add() 0 1 ?
getConfig() 0 1 ?
getPaymentDates() 0 1 ?
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Kauri\Loan;
6
7
8
interface PaymentScheduleInterface
9
{
10
    /**
11
     * PaymentScheduleInterface constructor.
12
     * @param PaymentScheduleConfigInterface $config
13
     */
14
    public function __construct(PaymentScheduleConfigInterface $config);
15
16
    /**
17
     * @param \DateTimeInterface $paymentDate
18
     * @param null|int $paymentSequenceNo
19
     */
20
    public function add(\DateTimeInterface $paymentDate, int $paymentSequenceNo = null): void;
21
22
    /**
23
     * @return PaymentScheduleConfigInterface
24
     */
25
    public function getConfig(): PaymentScheduleConfigInterface;
26
27
    /**
28
     * @return array
29
     */
30
    public function getPaymentDates(): array;
31
32
}