Passed
Push — master ( cd664b...7baf30 )
by Dispositif
13:51
created

WebarchiveDTO::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
dl 0
loc 7
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 4
1
<?php
2
/*
3
 * This file is part of dispositif/wikibot application (@github)
4
 * 2019-2023 © Philippe M./Irønie  <[email protected]>
5
 * For the full copyright and MIT license information, view the license file.
6
 */
7
8
declare(strict_types=1);
9
10
namespace App\Domain\Models;
11
12
use DateTimeImmutable;
13
14
class WebarchiveDTO
15
{
16
    public function __construct(
17
        protected string             $archiver,
18
        protected string             $originalUrl,
19
        protected string             $archiveUrl,
20
        protected ?DateTimeImmutable $archiveDate
21
    )
22
    {
23
    }
24
25
    public function getArchiver(): string
26
    {
27
        return $this->archiver;
28
    }
29
30
    public function getOriginalUrl(): string
31
    {
32
        return $this->originalUrl;
33
    }
34
35
    public function getArchiveUrl(): string
36
    {
37
        return $this->archiveUrl;
38
    }
39
40
    public function getArchiveDate(): ?DateTimeImmutable
41
    {
42
        return $this->archiveDate;
43
    }
44
}