| Total Complexity | 6 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | final class ArticleWasFetched |
||
| 15 | { |
||
| 16 | private $link; |
||
| 17 | private $author; |
||
| 18 | private $description; |
||
| 19 | private $title; |
||
| 20 | private $publicationDate; |
||
| 21 | |||
| 22 | 8 | public function __construct( |
|
| 23 | UrlInterface $link, |
||
| 24 | Author $author, |
||
| 25 | Description $description, |
||
| 26 | Title $title, |
||
| 27 | PointInTimeInterface $publicationDate |
||
| 28 | ) { |
||
| 29 | 8 | $this->link = $link; |
|
| 30 | 8 | $this->author = $author; |
|
| 31 | 8 | $this->description = $description; |
|
| 32 | 8 | $this->title = $title; |
|
| 33 | 8 | $this->publicationDate = $publicationDate; |
|
| 34 | 8 | } |
|
| 35 | |||
| 36 | 2 | public function author(): Author |
|
| 37 | { |
||
| 38 | 2 | return $this->author; |
|
| 39 | } |
||
| 40 | |||
| 41 | 2 | public function link(): UrlInterface |
|
| 44 | } |
||
| 45 | |||
| 46 | 2 | public function description(): Description |
|
| 47 | { |
||
| 48 | 2 | return $this->description; |
|
| 49 | } |
||
| 50 | |||
| 51 | 2 | public function title(): Title |
|
| 54 | } |
||
| 55 | |||
| 56 | 2 | public function publicationDate(): PointInTimeInterface |
|
| 59 | } |
||
| 60 | } |
||
| 61 |