1 | <?php |
||
5 | abstract class AbstractAttribute |
||
6 | { |
||
7 | /** @var string **/ |
||
8 | protected $name; |
||
9 | /** @var string **/ |
||
10 | protected $type; |
||
11 | /** @var string **/ |
||
12 | protected $slug; |
||
13 | /** @var mixed **/ |
||
14 | protected $value; |
||
15 | |||
16 | /** |
||
17 | * @param string $name |
||
18 | * |
||
19 | * @return static |
||
20 | */ |
||
21 | 18 | public function setName($name) |
|
22 | { |
||
23 | 18 | $this->name = $name; |
|
24 | |||
25 | 18 | return $this; |
|
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return string |
||
30 | */ |
||
31 | 4 | public function getName() |
|
32 | { |
||
33 | 4 | return $this->name; |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param string $type |
||
38 | * |
||
39 | * @return static |
||
40 | */ |
||
41 | 14 | public function setType($type) |
|
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | 13 | public function getType() |
|
55 | |||
56 | /** |
||
57 | * @param string $slug |
||
58 | * |
||
59 | * @return static |
||
60 | */ |
||
61 | 16 | public function setSlug($slug) |
|
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | 8 | public function getSlug() |
|
75 | |||
76 | /** |
||
77 | * @param mixed $value |
||
78 | * |
||
79 | * @return static |
||
80 | */ |
||
81 | 11 | public function setValue($value) |
|
87 | |||
88 | /** |
||
89 | * @return mixed |
||
90 | */ |
||
91 | 11 | public function getValue() |
|
95 | |||
96 | } |
||
97 |