1 | <?php |
||
14 | abstract class Thing |
||
15 | { |
||
16 | /** |
||
17 | * @var string An alias for the item. |
||
18 | */ |
||
19 | protected $alternateName; |
||
20 | /** |
||
21 | * @var string A short description of the item. |
||
22 | */ |
||
23 | protected $description; |
||
24 | /** |
||
25 | * @var string The name of the item. |
||
26 | */ |
||
27 | protected $name; |
||
28 | /** |
||
29 | * @var string URL of the item. |
||
30 | */ |
||
31 | protected $url; |
||
32 | |||
33 | /** |
||
34 | * Sets alternateName. |
||
35 | * |
||
36 | * @param string $alternateName |
||
37 | * |
||
38 | * @return $this |
||
39 | */ |
||
40 | 2 | public function setAlternateName($alternateName) |
|
46 | |||
47 | /** |
||
48 | * Gets alternateName. |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | 2 | public function getAlternateName() |
|
56 | |||
57 | /** |
||
58 | * Sets description. |
||
59 | * |
||
60 | * @param string $description |
||
61 | * |
||
62 | * @return $this |
||
63 | */ |
||
64 | 4 | public function setDescription($description) |
|
70 | |||
71 | /** |
||
72 | * Gets description. |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | 4 | public function getDescription() |
|
80 | |||
81 | /** |
||
82 | * Sets name. |
||
83 | * |
||
84 | * @param string $name |
||
85 | * |
||
86 | * @return $this |
||
87 | */ |
||
88 | 10 | public function setName($name) |
|
94 | |||
95 | /** |
||
96 | * Gets name. |
||
97 | * |
||
98 | * @return string |
||
99 | */ |
||
100 | 6 | public function getName() |
|
104 | |||
105 | /** |
||
106 | * Sets url. |
||
107 | * |
||
108 | * @param string $url |
||
109 | * |
||
110 | * @return $this |
||
111 | */ |
||
112 | 4 | public function setUrl($url) |
|
118 | |||
119 | /** |
||
120 | * Gets url. |
||
121 | * |
||
122 | * @return string |
||
123 | */ |
||
124 | 6 | public function getUrl() |
|
128 | |||
129 | /** |
||
130 | * Returns array representation of Thing. |
||
131 | * |
||
132 | * @return array |
||
133 | */ |
||
134 | 2 | public function toArray() |
|
144 | } |
||
145 |