1 | <?php |
||
16 | class Player |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $name; |
||
22 | |||
23 | /** |
||
24 | * @var int |
||
25 | */ |
||
26 | protected $number; |
||
27 | |||
28 | /** |
||
29 | * @var float |
||
30 | */ |
||
31 | protected $height; |
||
32 | |||
33 | /** |
||
34 | * @var bool |
||
35 | */ |
||
36 | protected $regular; |
||
37 | |||
38 | /** |
||
39 | * Player constructor. |
||
40 | * |
||
41 | * @param string $name |
||
42 | * @param int $number |
||
43 | */ |
||
44 | public function __construct($name = null, $number = null) |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getName() |
||
57 | |||
58 | /** |
||
59 | * @param string $name |
||
60 | * |
||
61 | * @return $this |
||
62 | */ |
||
63 | public function setName($name) |
||
69 | |||
70 | /** |
||
71 | * @return int |
||
72 | */ |
||
73 | public function getNumber() |
||
77 | |||
78 | /** |
||
79 | * @param int $number |
||
80 | * |
||
81 | * @return $this |
||
82 | */ |
||
83 | public function setNumber($number) |
||
89 | |||
90 | /** |
||
91 | * @return float |
||
92 | */ |
||
93 | public function getHeight() |
||
97 | |||
98 | /** |
||
99 | * @param float $height |
||
100 | * |
||
101 | * @return $this |
||
102 | */ |
||
103 | public function setHeight($height) |
||
109 | |||
110 | /** |
||
111 | * @return bool |
||
112 | */ |
||
113 | public function isRegular() |
||
117 | |||
118 | /** |
||
119 | * @param bool $regular |
||
120 | * |
||
121 | * @return $this |
||
122 | */ |
||
123 | public function setRegular($regular) |
||
129 | } |
||
130 |