Passed
Push — master ( de30cb...30b342 )
by Korotkov
08:04 queued 13s
created

Album   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

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

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
     * Album constructor.
19
     * @param string $author
20
     * @param string $album
21
     */
22
    public function __construct(string $author, string $album)
23
    {
24
        $this->author = $author;
25
        $this->album = $album;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getAuthor(): string
32
    {
33
        return $this->author;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getAlbum(): string
40
    {
41
        return $this->album;
42
    }
43
}
44
45