1 | <?php |
||
17 | class FunctionChecker extends AbstractChecker |
||
18 | { |
||
19 | |||
20 | const TYPE_FUNCTION_DELETED = 'function.deleted'; |
||
21 | const TYPE_FUNCTION_SIGNATURE_CHANGED = 'function.signature_changed'; |
||
22 | |||
23 | /** |
||
24 | * Source function data. |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $sourceFunctionData = array(); |
||
29 | |||
30 | /** |
||
31 | * Target function data. |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | protected $targetFunctionData = array(); |
||
36 | |||
37 | /** |
||
38 | * Constructor. |
||
39 | * |
||
40 | * @param CacheProvider $cache Cache provider. |
||
41 | */ |
||
42 | 3 | public function __construct(CacheProvider $cache) |
|
51 | |||
52 | /** |
||
53 | * Returns backwards compatibility checker name. |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | 1 | public function getName() |
|
61 | |||
62 | /** |
||
63 | * Collects backwards compatibility violations. |
||
64 | * |
||
65 | * @return void |
||
66 | */ |
||
67 | 2 | protected function doCheck() |
|
95 | |||
96 | /** |
||
97 | * Calculates function parameter signature. |
||
98 | * |
||
99 | * @param ExtendedPdoInterface $db Database. |
||
100 | * @param integer $function_id Function ID. |
||
101 | * |
||
102 | * @return integer |
||
103 | */ |
||
104 | 2 | protected function getFunctionParameterSignature(ExtendedPdoInterface $db, $function_id) |
|
120 | |||
121 | /** |
||
122 | * Processes function. |
||
123 | * |
||
124 | * @return void |
||
125 | */ |
||
126 | 2 | protected function processFunction() |
|
142 | |||
143 | } |
||
144 |