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