1 | <?php |
||
7 | abstract class Byte extends ValueObject |
||
|
|||
8 | { |
||
9 | private $units = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]; |
||
10 | protected $power; |
||
11 | |||
12 | public static function fromBytes($bytes) |
||
16 | |||
17 | /** |
||
18 | * @return float |
||
19 | */ |
||
20 | private function base() |
||
24 | |||
25 | public function getUnit() |
||
29 | |||
30 | public function power($precision = 2) |
||
34 | |||
35 | public function __toString() |
||
39 | } |
||
40 |
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.