1 | <?php |
||
15 | class LazyInitHelper |
||
|
|||
16 | { |
||
17 | use LazyInitStaticTrait; |
||
18 | |||
19 | /** |
||
20 | * |
||
21 | */ |
||
22 | const PART_SEPARATOR = '#'; |
||
23 | |||
24 | /** |
||
25 | * @param Closure $closure |
||
26 | * @param string|null $key |
||
27 | * @param mixed[] $params |
||
28 | * |
||
29 | * @return mixed |
||
30 | * |
||
31 | * @throws ErrorException |
||
32 | */ |
||
33 | 4 | public static function lazyInit ( Closure $closure, $key = null, array $params = [ ] ) |
|
41 | |||
42 | /** |
||
43 | * @param int $backtraceDepth |
||
44 | * |
||
45 | * @return string |
||
46 | * |
||
47 | * @throws ErrorException |
||
48 | */ |
||
49 | 15 | public static function createBacktraceKey ( $backtraceDepth = 3 ) |
|
56 | |||
57 | /** |
||
58 | * @param int $backtraceDepth |
||
59 | * |
||
60 | * @return array |
||
61 | * |
||
62 | * @throws ErrorException |
||
63 | */ |
||
64 | 16 | public static function createBacktraceData ( $backtraceDepth = 0 ) |
|
77 | |||
78 | /** |
||
79 | * @param array $dependency |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | 8 | public static function createDependencyKey ( array $dependency ) |
|
87 | } |
||
88 |
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.