-
Notifications
You must be signed in to change notification settings - Fork 0
/
Student.php
56 lines (41 loc) · 1.3 KB
/
Student.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
namespace Studentslist\Models;
/**
* Класс для хранения информации об одном студента.
*
*/
class Student {
/** @var integer ID студента */
public $id;
/** @var string Имя студента */
public $fname;
/** @var string Фамилия студента */
public $sname;
/** @var string Пол студента */
public $gender;
/** @var string Группа студента */
public $group;
/** @var integer Год рождения студента */
public $byear;
/** @var string E-mail студента */
public $email;
/** @var integer Суммарный бал ЕГЭ студента */
public $examScore;
/** @var string Территориальная принадлежность студента */
public $local;
/** @var string Аутентификационный токен студента */
private $authToken;
public function __get($property) {
switch ($property) {
case 'authToken':
return $this->authToken;
}
}
public function __set($property, $value) {
switch ($property) {
case 'authToken':
$this->authToken = $value;
break;
}
}
}