1 | <?php |
||
9 | class University |
||
10 | { |
||
11 | /** |
||
12 | * The attributes array. |
||
13 | * |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $attributes; |
||
17 | |||
18 | /** |
||
19 | * Create a new University instance. |
||
20 | * |
||
21 | * @param array $attributes |
||
22 | * |
||
23 | * @throws \Exception |
||
24 | */ |
||
25 | public function __construct($attributes) |
||
35 | |||
36 | /** |
||
37 | * Set the attributes. |
||
38 | * |
||
39 | * @param array $attributes |
||
40 | * |
||
41 | * @return $this |
||
42 | */ |
||
43 | public function setAttributes($attributes) |
||
49 | |||
50 | /** |
||
51 | * Get the attributes. |
||
52 | * |
||
53 | * @return array|null |
||
54 | */ |
||
55 | public function getAttributes(): ?array |
||
59 | |||
60 | /** |
||
61 | * Set single attribute. |
||
62 | * |
||
63 | * @param string $key |
||
64 | * @param mixed $value |
||
65 | * |
||
66 | * @return $this |
||
67 | */ |
||
68 | public function set($key, $value) |
||
74 | |||
75 | /** |
||
76 | * Get an item from attributes array using "dot" notation. |
||
77 | * |
||
78 | * @param string $key |
||
79 | * @param mixed $default |
||
80 | * |
||
81 | * @return mixed |
||
82 | */ |
||
83 | public function get($key, $default = null) |
||
105 | |||
106 | /** |
||
107 | * Get the name. |
||
108 | * |
||
109 | * @return string|null |
||
110 | */ |
||
111 | public function getName(): ?string |
||
115 | |||
116 | /** |
||
117 | * Get the alternative name. |
||
118 | * |
||
119 | * @return string|null |
||
120 | */ |
||
121 | public function getAltName(): ?string |
||
125 | |||
126 | /** |
||
127 | * Get the country. |
||
128 | * |
||
129 | * @return string|null |
||
130 | */ |
||
131 | public function getCountry(): ?string |
||
135 | |||
136 | /** |
||
137 | * Get the state. |
||
138 | * |
||
139 | * @return string|null |
||
140 | */ |
||
141 | public function getState(): ?string |
||
145 | |||
146 | /** |
||
147 | * Get the address. |
||
148 | * |
||
149 | * @return array|null |
||
150 | */ |
||
151 | public function getAddress(): ?array |
||
155 | |||
156 | /** |
||
157 | * Get the street. |
||
158 | * |
||
159 | * @return string|null |
||
160 | */ |
||
161 | public function getStreet(): ?string |
||
165 | |||
166 | /** |
||
167 | * Get the city. |
||
168 | * |
||
169 | * @return string|null |
||
170 | */ |
||
171 | public function getCity(): ?string |
||
175 | |||
176 | /** |
||
177 | * Get the province. |
||
178 | * |
||
179 | * @return string|null |
||
180 | */ |
||
181 | public function getProvince(): ?string |
||
185 | |||
186 | /** |
||
187 | * Get the postal code. |
||
188 | * |
||
189 | * @return string|null |
||
190 | */ |
||
191 | public function getPostalCode(): ?string |
||
195 | |||
196 | /** |
||
197 | * Get the contact. |
||
198 | * |
||
199 | * @return array|null |
||
200 | */ |
||
201 | public function getContact(): ?array |
||
205 | |||
206 | /** |
||
207 | * Get the telephone. |
||
208 | * |
||
209 | * @return string|null |
||
210 | */ |
||
211 | public function getTelephone(): ?string |
||
215 | |||
216 | /** |
||
217 | * Get the website. |
||
218 | * |
||
219 | * @return string|null |
||
220 | */ |
||
221 | public function getWebsite(): ?string |
||
225 | |||
226 | /** |
||
227 | * Get the email. |
||
228 | * |
||
229 | * @return string|null |
||
230 | */ |
||
231 | public function getEmail(): ?string |
||
235 | |||
236 | /** |
||
237 | * Get the fax. |
||
238 | * |
||
239 | * @return string|null |
||
240 | */ |
||
241 | public function getFax(): ?string |
||
245 | |||
246 | /** |
||
247 | * Get the funding. |
||
248 | * |
||
249 | * @return string|null |
||
250 | */ |
||
251 | public function getFunding(): ?string |
||
255 | |||
256 | /** |
||
257 | * Get the languages. |
||
258 | * |
||
259 | * @return array|null |
||
260 | */ |
||
261 | public function getLanguages(): ?array |
||
265 | |||
266 | /** |
||
267 | * Get the academic year. |
||
268 | * |
||
269 | * @return string|null |
||
270 | */ |
||
271 | public function getAcademicYear(): ?string |
||
275 | |||
276 | /** |
||
277 | * Get the accrediting agency. |
||
278 | * |
||
279 | * @return string|null |
||
280 | */ |
||
281 | public function getAccreditingAgency(): ?string |
||
285 | } |
||
286 |