1 | <?php |
||
27 | class Intraface_XMLRPC_Server0200 |
||
28 | { |
||
29 | /** |
||
30 | * @var struct $credentials |
||
31 | */ |
||
32 | protected $credentials; |
||
33 | |||
34 | /** |
||
35 | * @var object $kernel intraface kernel |
||
36 | */ |
||
37 | protected $kernel; |
||
38 | |||
39 | /** |
||
40 | * @var array with valid encodings |
||
41 | */ |
||
42 | protected $valid_encodings = array('utf-8'); |
||
43 | |||
44 | /** |
||
45 | * @var string with encoding |
||
46 | */ |
||
47 | protected $encoding = 'utf-8'; |
||
48 | |||
49 | /** |
||
50 | * Constructor |
||
51 | * |
||
52 | * @param string $encoding The encoding wich the server recieves and returns data in |
||
|
|||
53 | * |
||
54 | * @return void |
||
55 | */ |
||
56 | public function __construct() |
||
59 | |||
60 | /** |
||
61 | * Checks credentials |
||
62 | * |
||
63 | * @param struct $credentials Credentials to use the server |
||
64 | * |
||
65 | * @return array |
||
66 | */ |
||
67 | protected function checkCredentials($credentials) |
||
102 | |||
103 | /** |
||
104 | * Prepares response to be sent |
||
105 | * |
||
106 | * @param mixed $values Array or string to decode |
||
107 | * |
||
108 | * @return mixed UTF8 decoded request |
||
109 | */ |
||
110 | protected function prepareResponseData($values) |
||
115 | |||
116 | /** |
||
117 | * Process data from client, so that data is returned with the correct encoding. |
||
118 | * |
||
119 | * @param mixed $values Array or string to decode |
||
120 | * |
||
121 | * @return mixed correct encoded response |
||
122 | */ |
||
123 | protected function processRequestData($values) |
||
127 | |||
128 | function handleNull($value) |
||
135 | |||
136 | protected function recursiveMap($function, $values) |
||
151 | } |
||
152 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.