PostImage   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A title() 0 3 1
A cover() 0 3 1
A __construct() 0 6 1
A altText() 0 3 1
A url() 0 3 1
1
<?php
2
3
namespace PODEntender\Domain\Model\Post;
4
5
class PostImage
6
{
7
    private $url;
8
9
    private $title;
10
11
    private $altText;
12
13
    private $cover;
14
15
    public function __construct(string $url, string $title, string $altText, bool $cover)
16
    {
17
        $this->url = $url;
18
        $this->title = $title;
19
        $this->altText = $altText;
20
        $this->cover = $cover;
21
    }
22
    public function url(): string
23
    {
24
        return $this->url;
25
    }
26
    public function title(): string
27
    {
28
        return $this->title;
29
    }
30
    public function altText(): string
31
    {
32
        return $this->altText;
33
    }
34
    public function cover(): bool
35
    {
36
        return $this->cover;
37
    }
38
}
39