Total Complexity | 5 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class Tag |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * @var integer |
||
12 | */ |
||
13 | protected $id; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $title; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $slug; |
||
24 | |||
25 | /** |
||
26 | * @return int |
||
27 | */ |
||
28 | public function getId(): int |
||
29 | { |
||
30 | return $this->id; |
||
31 | } |
||
32 | |||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getTitle(): string |
||
38 | { |
||
39 | return $this->title; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param string $title |
||
44 | */ |
||
45 | public function setTitle(string $title) |
||
46 | { |
||
47 | $this->title = $title; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getSlug(): string |
||
54 | { |
||
55 | return $this->slug; |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @param string $slug |
||
60 | */ |
||
61 | public function setSlug(string $slug) |
||
64 | } |
||
65 | |||
66 | |||
67 | |||
68 | } |