1 | <?php |
||
16 | class FunctionChecker extends AbstractChecker |
||
17 | { |
||
18 | |||
19 | const TYPE_FUNCTION_DELETED = 'function.deleted'; |
||
20 | const TYPE_FUNCTION_SIGNATURE_CHANGED = 'function.signature_changed'; |
||
21 | |||
22 | /** |
||
23 | * Source function data. |
||
24 | * |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $sourceFunctionData = array(); |
||
28 | |||
29 | /** |
||
30 | * Target function data. |
||
31 | * |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $targetFunctionData = array(); |
||
35 | |||
36 | /** |
||
37 | * Returns backwards compatibility checker name. |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | 1 | public function getName() |
|
45 | |||
46 | /** |
||
47 | * Collects backwards compatibility violations. |
||
48 | * |
||
49 | * @return void |
||
50 | */ |
||
51 | 2 | protected function doCheck() |
|
79 | |||
80 | /** |
||
81 | * Calculates function parameter signature. |
||
82 | * |
||
83 | * @param ExtendedPdoInterface $db Database. |
||
84 | * @param integer $function_id Function ID. |
||
85 | * |
||
86 | * @return integer |
||
87 | */ |
||
88 | 2 | protected function getFunctionParameterSignature(ExtendedPdoInterface $db, $function_id) |
|
104 | |||
105 | /** |
||
106 | * Processes function. |
||
107 | * |
||
108 | * @return void |
||
109 | */ |
||
110 | 2 | protected function processFunction() |
|
123 | |||
124 | } |
||
125 |