Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | interface DateTime |
||
|
|||
17 | { |
||
18 | /** |
||
19 | * Now. |
||
20 | * |
||
21 | * @return static |
||
22 | */ |
||
23 | public static function now(); |
||
24 | |||
25 | /** |
||
26 | * From Native |
||
27 | * |
||
28 | * @param \DateTime $native |
||
29 | * @return DateTime |
||
30 | */ |
||
31 | public static function fromNative(\DateTime $native); |
||
32 | |||
33 | /** |
||
34 | * From String |
||
35 | * |
||
36 | * @param string $string |
||
37 | * @return DateTime |
||
38 | */ |
||
39 | public static function fromString($string); |
||
40 | } |
||
41 |
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.