1 | <?php |
||
6 | class InitialiseClass { |
||
7 | protected static $ressource; |
||
8 | protected static $base; |
||
9 | protected static $batiment; |
||
10 | protected static $unite; |
||
11 | protected static $groupe_unite; |
||
12 | protected static $centre_recherche; |
||
13 | protected static $missions_aleatoire; |
||
14 | protected static $database; |
||
15 | |||
16 | |||
17 | |||
18 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
||
19 | |||
20 | //initilisation of all classes of battle |
||
21 | //initialisation of Ressource class |
||
22 | public static function getRessource() { |
||
29 | |||
30 | //initialisation of Base class |
||
31 | public static function getBase() { |
||
38 | |||
39 | //initialisation of Batiment class |
||
40 | public static function getBatiment() { |
||
47 | |||
48 | //initialisation of Unite class |
||
49 | public static function getUnite() { |
||
56 | |||
57 | //initialisation of GroupeUnite class |
||
58 | public static function getGoupeUnite() { |
||
65 | |||
66 | //initialisation of CentreRecherche class |
||
67 | public static function getCentreRecherche() { |
||
74 | |||
75 | //initialisation of MissionsAleatoire class |
||
76 | public static function getMissionsAleatoire() { |
||
83 | |||
84 | //initialisation of Database Core connexion |
||
85 | public static function getDb() { |
||
93 | //-------------------------- END GETTER ----------------------------------------------------------------------------// |
||
94 | |||
95 | |||
96 | //-------------------------- SETTER ----------------------------------------------------------------------------// |
||
97 | //-------------------------- END SETTER ----------------------------------------------------------------------------// |
||
98 | } |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.