| 1 | <?php |
||
| 14 | class PhaseManager |
||
|
|
|||
| 15 | { |
||
| 16 | /** @var int */ |
||
| 17 | public const MAX_PHASE = 3; |
||
| 18 | |||
| 19 | /** @var int $phase */ |
||
| 20 | private static $phase = 1; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param int $phase |
||
| 24 | */ |
||
| 25 | public static function setPhase(int $phase): void |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @throws \ReflectionException |
||
| 32 | */ |
||
| 33 | public static function addPhase(): void |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return int |
||
| 47 | */ |
||
| 48 | public static function getPhase(): int |
||
| 52 | } |
||
| 53 |
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.