Album   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 3
eloc 7
c 3
b 0
f 0
dl 0
loc 41
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getAlbum() 0 3 1
A getAuthor() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * @album  : Jagepard <[email protected]>
7
 * @license https://mit-license.org/ MIT
8
 */
9
10
namespace Behavioral\Interpreter;
11
12
class Album implements AlbumInterface
13
{
14
    private string $author;
15
    private string $album;
16
17
    /**
18
     * Sets the author and album titles
19
     * -----------------------------------------
20
     * Устанваливает наименования автор и альбом
21
     *
22
     * @param  string $author
23
     * @param  string $album
24
     */
25
    public function __construct(string $author, string $album)
26
    {
27
        $this->author = $author;
28
        $this->album = $album;
29
    }
30
31
    /**
32
     * Gets the name of the author of the album
33
     * ----------------------------------------
34
     * Получает наименование автора альбома
35
     *
36
     * @return string
37
     */
38
    public function getAuthor(): string
39
    {
40
        return $this->author;
41
    }
42
43
    /**
44
     * Gets the title of the album
45
     * ---------------------------
46
     * Получает название альбома
47
     *
48
     * @return string
49
     */
50
    public function getAlbum(): string
51
    {
52
        return $this->album;
53
    }
54
}
55
56