Film   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 75%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 39
ccs 6
cts 8
cp 0.75
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getTitle() 0 4 1
A getDirector() 0 4 1
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