Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class RfcLog |
||
8 | { |
||
9 | const ACTION_CREATED = 0; |
||
10 | |||
11 | const ACTION_REMOVED = 1; |
||
12 | |||
13 | const ACTION_CHANGE_SNCF_ON = 2; |
||
14 | |||
15 | const ACTION_CHANGE_SNCF_OFF = 3; |
||
16 | |||
17 | const ACTION_CHANGE_SUB_ON = 4; |
||
18 | |||
19 | const ACTION_CHANGE_SUB_OFF = 5; |
||
20 | |||
21 | /** @var VersionDate */ |
||
22 | private $date; |
||
23 | |||
24 | /** @var string */ |
||
25 | private $rfc; |
||
26 | |||
27 | /** @var int */ |
||
28 | private $action; |
||
29 | |||
30 | 6 | public function __construct(VersionDate $date, string $rfc, int $action) |
|
31 | { |
||
32 | 6 | $this->date = $date; |
|
33 | 6 | $this->rfc = $rfc; |
|
34 | 6 | $this->action = $action; |
|
35 | 6 | } |
|
36 | |||
37 | 6 | public function date(): VersionDate |
|
38 | { |
||
39 | 6 | return $this->date; |
|
40 | } |
||
41 | |||
42 | 5 | public function rfc(): string |
|
45 | } |
||
46 | |||
47 | 6 | public function action(): int |
|
50 | } |
||
51 | } |
||
52 |