PostImage::altText()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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