Film::getDirector()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
declare(strict_types=1);
3
4
namespace codenixsv\Patterns\Behavioral\Iterator;
5
6
/**
7
 * Class Film
8
 * @package codenixsv\Patterns\Behavioral\Iterator
9
 */
10
class Film
11
{
12
    /**
13
     * @var string
14
     */
15
    private $title;
16
17
    /**
18
     * @var string
19
     */
20
    private $director;
21
22
    /**
23
     * Film constructor.
24
     * @param string $title
25
     * @param string $director
26
     */
27 3
    public function __construct(string $title, string $director)
28
    {
29 3
        $this->title = $title;
30 3
        $this->director = $director;
31 3
    }
32
33
    /**
34
     * @return string
35
     */
36 2
    public function getTitle(): string
37
    {
38 2
        return $this->title;
39
    }
40
41
    /**
42
     * @return string
43
     */
44
    public function getDirector(): string
45
    {
46
        return $this->director;
47
    }
48
}
49