Book   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 61
c 0
b 0
f 0
wmc 6
lcom 0
cbo 0
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A getAuthorName() 0 4 1
A getAuthorEmail() 0 4 1
A getTitle() 0 4 1
A getPrice() 0 4 1
A getYear() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: harry
5
 * Date: 2/14/18
6
 * Time: 1:15 PM
7
 */
8
9
namespace PhpRestfulApiResponse\Tests\unit\Lib;
10
11
12
class Book
13
{
14
    private $authorName;
15
16
    private $authorEmail;
17
18
    private $title;
19
20
    private $price;
21
22
    private $year;
23
24
    public function __construct($authorName, $authorEmail, $title, $price, $year)
25
    {
26
        $this->authorName = $authorName;
27
        $this->authorEmail = $authorEmail;
28
        $this->title = $title;
29
        $this->price = $price;
30
        $this->year = $year;
31
    }
32
33
    /**
34
     * @return mixed
35
     */
36
    public function getAuthorName()
37
    {
38
        return $this->authorName;
39
    }
40
41
    /**
42
     * @return mixed
43
     */
44
    public function getAuthorEmail()
45
    {
46
        return $this->authorEmail;
47
    }
48
49
    /**
50
     * @return mixed
51
     */
52
    public function getTitle()
53
    {
54
        return $this->title;
55
    }
56
57
    /**
58
     * @return mixed
59
     */
60
    public function getPrice()
61
    {
62
        return $this->price;
63
    }
64
65
    /**
66
     * @return mixed
67
     */
68
    public function getYear()
69
    {
70
        return $this->year;
71
    }
72
}