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

WebarchiveDTO   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getOriginalUrl() 0 3 1
A __construct() 0 7 1
A getArchiveUrl() 0 3 1
A getArchiveDate() 0 3 1
A getArchiver() 0 3 1
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
}