Completed
Push — master ( 5163a0...712d21 )
by Valentyn
06:59
created

MovieTranslationDTO::getTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace App\Movies\DTO;
5
6
class MovieTranslationDTO
7
{
8
    private $locale, $title, $overview, $posterUrl;
0 ignored issues
show
Coding Style introduced by
It is generally advisable to only define one property per statement.

Only declaring a single property per statement allows you to later on add doc comments more easily.

It is also recommended by PSR2, so it is a common style that many people expect.

Loading history...
9
10 2
    public function __construct(string $locale, string $title, ?string $overview, ?string $posterUrl)
11
    {
12 2
        $this->locale = $locale;
13 2
        $this->title = $title;
14 2
        $this->overview = $overview;
15 2
        $this->posterUrl = $posterUrl;
16 2
    }
17
18
    /**
19
     * @return string
20
     */
21 2
    public function getLocale(): string
22
    {
23 2
        return $this->locale;
24
    }
25
26
    /**
27
     * @return string
28
     */
29 2
    public function getTitle(): string
30
    {
31 2
        return $this->title;
32
    }
33
34
    /**
35
     * @return null|string
36
     */
37 2
    public function getOverview(): ?string
38
    {
39 2
        return $this->overview;
40
    }
41
42
    /**
43
     * @return null|string
44
     */
45 2
    public function getPosterUrl(): ?string
46
    {
47 2
        return $this->posterUrl;
48
    }
49
}