Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class Album implements ItemInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $name; |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $author; |
||
26 | |||
27 | /** |
||
28 | * Album constructor. |
||
29 | * @param string $name |
||
30 | * @param string $author |
||
31 | */ |
||
32 | public function __construct(string $name, string $author) |
||
33 | { |
||
34 | $this->name = $name; |
||
35 | $this->author = $author; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getName(): string |
||
42 | { |
||
43 | return $this->name; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getAuthor(): string |
||
52 | } |
||
53 | } |
||
54 |