Test Failed
Push — master ( 6fa257...3b06f4 )
by Nils
02:25
created

Article::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 0
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Sesame\Model;
3
4
/**
5
 * Class Article
6
 * @package Sesame\Model
7
 */
8
class Article
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $name;
14
15
    /**
16
     * @var int
17
     */
18
    protected $orders;
19
20
    /**
21
     * @var float
22
     */
23
    protected $price;
24
25
    /**
26
     * @var float
27
     */
28
    protected $priceDiscount;
29
30
    /**
31
     * @var string
32
     */
33
    protected $url;
34
35
    /**
36
     * @return string
37
     */
38
    public function getName(): string
39
    {
40
        return $this->name;
41
    }
42
43
    /**
44
     * @param string $name
45
     * @return Article
46
     */
47
    public function setName(string $name): Article
48
    {
49
        $this->name = $name;
50
51
        return $this;
52
    }
53
54
    /**
55
     * @return int
56
     */
57
    public function getOrders(): int
58
    {
59
        return $this->orders;
60
    }
61
62
    /**
63
     * @param int $orders
64
     * @return Article
65
     */
66
    public function setOrders(int $orders): Article
67
    {
68
        $this->orders = $orders;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @return float
75
     */
76
    public function getPrice(): float
77
    {
78
        return $this->price;
79
    }
80
81
    /**
82
     * @param float $price
83
     * @return Article
84
     */
85
    public function setPrice(float $price): Article
86
    {
87
        $this->price = $price;
88
89
        return $this;
90
    }
91
92
    /**
93
     * @return string
94
     */
95
    public function getUrl(): string
96
    {
97
        return $this->url;
98
    }
99
100
    /**
101
     * @param string $url
102
     * @return Article
103
     */
104
    public function setUrl(string $url): Article
105
    {
106
        $this->url = $url;
107
108
        return $this;
109
    }
110
}
111