1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This class was automatically generated. |
5
|
|
|
*/ |
6
|
|
|
|
7
|
|
|
namespace JobApis\Jobs\Client\Schema\Entity; |
8
|
|
|
|
9
|
|
|
/** |
10
|
|
|
* The most generic type of item. |
11
|
|
|
* |
12
|
|
|
* @see http://schema.org/Thing Documentation on Schema.org |
13
|
|
|
*/ |
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) |
41
|
|
|
{ |
42
|
2 |
|
$this->alternateName = $alternateName; |
43
|
|
|
|
44
|
2 |
|
return $this; |
45
|
|
|
} |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* Gets alternateName. |
49
|
|
|
* |
50
|
|
|
* @return string |
51
|
|
|
*/ |
52
|
2 |
|
public function getAlternateName() |
53
|
|
|
{ |
54
|
2 |
|
return $this->alternateName; |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* Sets description. |
59
|
|
|
* |
60
|
|
|
* @param string $description |
61
|
|
|
* |
62
|
|
|
* @return $this |
63
|
|
|
*/ |
64
|
4 |
|
public function setDescription($description) |
65
|
|
|
{ |
66
|
4 |
|
$this->description = $description; |
67
|
|
|
|
68
|
4 |
|
return $this; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* Gets description. |
73
|
|
|
* |
74
|
|
|
* @return string |
75
|
|
|
*/ |
76
|
4 |
|
public function getDescription() |
77
|
|
|
{ |
78
|
4 |
|
return $this->description; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* Sets name. |
83
|
|
|
* |
84
|
|
|
* @param string $name |
85
|
|
|
* |
86
|
|
|
* @return $this |
87
|
|
|
*/ |
88
|
10 |
|
public function setName($name) |
89
|
|
|
{ |
90
|
10 |
|
$this->name = $name; |
91
|
|
|
|
92
|
10 |
|
return $this; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* Gets name. |
97
|
|
|
* |
98
|
|
|
* @return string |
99
|
|
|
*/ |
100
|
6 |
|
public function getName() |
101
|
|
|
{ |
102
|
6 |
|
return $this->name; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* Sets url. |
107
|
|
|
* |
108
|
|
|
* @param string $url |
109
|
|
|
* |
110
|
|
|
* @return $this |
111
|
|
|
*/ |
112
|
4 |
|
public function setUrl($url) |
113
|
|
|
{ |
114
|
4 |
|
$this->url = $url; |
115
|
|
|
|
116
|
4 |
|
return $this; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* Gets url. |
121
|
|
|
* |
122
|
|
|
* @return string |
123
|
|
|
*/ |
124
|
6 |
|
public function getUrl() |
125
|
|
|
{ |
126
|
6 |
|
return $this->url; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* Returns array representation of Thing. |
131
|
|
|
* |
132
|
|
|
* @return array |
133
|
|
|
*/ |
134
|
2 |
|
public function toArray() |
135
|
|
|
{ |
136
|
2 |
|
$array = get_object_vars($this); |
137
|
2 |
|
array_walk($array, function ($value, $key) use (&$array) { |
138
|
2 |
|
if (is_object($value) && method_exists($value, 'toArray')) { |
139
|
2 |
|
$array[$key] = $value->toArray(); |
140
|
2 |
|
} |
141
|
2 |
|
}); |
142
|
2 |
|
return $array; |
143
|
|
|
} |
144
|
|
|
} |
145
|
|
|
|