Passed
Push — main ( 79e4f1...ed1bb6 )
by Slawomir
04:28
created

FindCommentsPostHeadersQueryResponse::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 0
cp 0
crap 2
rs 10
1
<?php
2
3
namespace App\Modules\Comments\Api\Query\Response;
4
5
use Symfony\Component\Uid\Ulid;
6
7
class FindCommentsPostHeadersQueryResponse
8
{
9
    /**
10
     * @param Ulid $id
11
     * @param string $title
12
     * @param array $tags
13
     * @param int $version
14
     */
15
    public function __construct(private Ulid      $id,
16
                                private string    $title,
17
                                private array     $tags,
18
                                private int       $version)
19 8
    {
20
    }
21
22
    /**
23
     * @return Ulid
24
     */
25
    public function getId(): Ulid
26
    {
27
        return $this->id;
28 8
    }
29
30
31
    /**
32
     * @return string
33 6
     */
34
    public function getTitle(): string
35 6
    {
36
        return $this->title;
37
    }
38
39
    /**
40
     * @return array
41
     */
42 2
    public function getTags(): array
43
    {
44 2
        return $this->tags;
45
    }
46
47
    /**
48
     * @return int
49
     */
50 2
    public function getVersion(): int
51
    {
52 2
        return $this->version;
53
    }
54
}