Total Complexity | 6 |
Total Lines | 69 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class Brand implements BrandInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var int |
||
11 | */ |
||
12 | protected $id; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $slug; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $name; |
||
23 | |||
24 | /** |
||
25 | * @return int |
||
26 | */ |
||
27 | public function getId(): int |
||
28 | { |
||
29 | return intval($this->id); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param int $id |
||
34 | * @return Brand |
||
35 | */ |
||
36 | public function setId(int $id) : BrandInterface |
||
37 | { |
||
38 | $this->id = $id; |
||
39 | return $this; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | public function getSlug(): string |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @param string $slug |
||
52 | * @return Brand |
||
53 | */ |
||
54 | public function setSlug(string $slug) : BrandInterface |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getName(): string |
||
66 | } |
||
67 | |||
68 | /** |
||
69 | * @param string $name |
||
70 | * @return Brand |
||
71 | */ |
||
72 | public function setName(string $name) : BrandInterface |
||
76 | } |
||
77 | } |