1 | <?php |
||
16 | class Module |
||
17 | { |
||
18 | /** |
||
19 | * @var |
||
20 | */ |
||
21 | private $moduleCode; |
||
22 | /** |
||
23 | * @var |
||
24 | */ |
||
25 | private $configuration; |
||
26 | |||
27 | /** |
||
28 | * @param $module |
||
29 | */ |
||
30 | public function __construct($module) |
||
36 | |||
37 | /** |
||
38 | * |
||
39 | */ |
||
40 | public function isOffensive() |
||
44 | |||
45 | /** |
||
46 | * |
||
47 | */ |
||
48 | public function isBalanced() |
||
52 | |||
53 | /** |
||
54 | * |
||
55 | */ |
||
56 | public function isDefensive() |
||
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | function __toString() |
||
68 | |||
69 | |||
70 | /** |
||
71 | * @param Team $team |
||
72 | * @return bool |
||
73 | */ |
||
74 | public function isApplicableToTeam(Team $team) |
||
78 | |||
79 | public function isApplicableToArray($playersForRole) |
||
89 | |||
90 | |||
91 | /** |
||
92 | * @param bool $complete |
||
93 | * @return array |
||
94 | */ |
||
95 | public function getRoleNeeded($complete = false) |
||
107 | |||
108 | |||
109 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.