1 | <?php |
||
8 | class Category |
||
9 | { |
||
10 | |||
11 | use HydratableTrait; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $id; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $name; |
||
18 | |||
19 | /** @var string */ |
||
20 | protected $description; |
||
21 | |||
22 | /** @var bool */ |
||
23 | protected $is_system; |
||
24 | |||
25 | /** @var string */ |
||
26 | protected $timestamp; |
||
27 | |||
28 | /** @var string */ |
||
29 | protected $parent_category; |
||
30 | |||
31 | /** |
||
32 | * Category constructor |
||
33 | */ |
||
34 | public function __construct() |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getId() |
||
45 | |||
46 | /** |
||
47 | * @param string $id |
||
48 | */ |
||
49 | public function setId($id) |
||
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | public function getName() |
||
61 | |||
62 | /** |
||
63 | * @param string $name |
||
64 | */ |
||
65 | public function setName($name) |
||
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getDescription() |
||
77 | |||
78 | /** |
||
79 | * @param string $description |
||
80 | */ |
||
81 | public function setDescription($description) |
||
85 | |||
86 | /** |
||
87 | * @return boolean |
||
88 | */ |
||
89 | public function isIsSystem() |
||
93 | |||
94 | /** |
||
95 | * @param boolean $is_system |
||
96 | */ |
||
97 | public function setIsSystem($is_system) |
||
101 | |||
102 | /** |
||
103 | * @return string |
||
104 | */ |
||
105 | public function getTimestamp() |
||
109 | |||
110 | /** |
||
111 | * @param string $timestamp |
||
112 | */ |
||
113 | public function setTimestamp($timestamp) |
||
117 | |||
118 | /** |
||
119 | * @return string |
||
120 | */ |
||
121 | public function getParentCategory() |
||
125 | |||
126 | /** |
||
127 | * @param string $parent_category |
||
128 | */ |
||
129 | public function setParentCategory($parent_category) |
||
133 | } |
||
134 |