Statement   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 28
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Endeken\OFX;
4
5
use DateTime;
6
7
class Statement
8
{
9
    /**
10
     * @var string
11
     */
12
    public string $currency;
13
14
    /**
15
     * @var Transaction[]
16
     */
17
    public array $transactions;
18
19
    /**
20
     * @var DateTime
21
     */
22
    public DateTime $startDate;
23
24
    /**
25
     * @var DateTime
26
     */
27
    public DateTime $endDate;
28
29
    public function __construct(string $currency, array $transactions, DateTime $startDate, DateTime $endDate)
30
    {
31
        $this->currency = $currency;
32
        $this->transactions = $transactions;
33
        $this->startDate = $startDate;
34
        $this->endDate = $endDate;
35
    }
36
}