1 | <?php |
||
13 | class DefaultConfig |
||
|
|||
14 | { |
||
15 | /** @var string */ |
||
16 | const VERSION = 'version'; |
||
17 | |||
18 | /** @var string */ |
||
19 | const STAGE_NAME = 'stage-world-name'; |
||
20 | |||
21 | /** @var string */ |
||
22 | const DEVELOP_MODE = 'dev-mode'; |
||
23 | |||
24 | /** @var string */ |
||
25 | const EVENT_TIME = 'event-time'; |
||
26 | |||
27 | /** @var string */ |
||
28 | const TIMEZONE = 'timezone'; |
||
29 | |||
30 | /** @var string */ |
||
31 | const BLOCK_ID = 'join-block-id'; |
||
32 | |||
33 | /** @var string */ |
||
34 | const RED = 'red'; |
||
35 | |||
36 | /** @var string */ |
||
37 | const BLUE = 'blue'; |
||
38 | |||
39 | /** |
||
40 | * @return int |
||
41 | */ |
||
42 | public static function getVersion(): int |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | public static function getStageLevelName(): string |
||
54 | |||
55 | /** |
||
56 | * @return bool |
||
57 | */ |
||
58 | public static function isDev(): bool |
||
62 | |||
63 | /** |
||
64 | * @return int |
||
65 | */ |
||
66 | public static function getEventTime(): int |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public static function getTimezone(): string |
||
78 | |||
79 | /** |
||
80 | * @return int |
||
81 | */ |
||
82 | public static function getBlockId(): int |
||
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | public static function getIp(): string |
||
94 | |||
95 | /** |
||
96 | * @return int |
||
97 | */ |
||
98 | public static function getPort(): int |
||
102 | |||
103 | /** |
||
104 | * @return array |
||
105 | */ |
||
106 | public static function getRedConfig(): array |
||
110 | |||
111 | /** |
||
112 | * @return array |
||
113 | */ |
||
114 | public static function getBlueConfig(): array |
||
118 | } |
||
119 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.