1 | <?php |
||
15 | class Service |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * Returns the specified service -- or all if unspecified. |
||
20 | * |
||
21 | * @param string $key=null The service key to retrieve. |
||
|
|||
22 | * @param array|null $args=null An array of argument to pass to the service. |
||
23 | * @return mixed |
||
24 | */ |
||
25 | public static function get($key=null, $args=null) |
||
29 | |||
30 | /** |
||
31 | * Sets the specified name, value as a service. |
||
32 | * |
||
33 | * @param string $name The service name to set. |
||
34 | * @param mixed $mix The corresponding value to set. |
||
35 | * @return void |
||
36 | */ |
||
37 | public static function set($name, $mix) |
||
41 | |||
42 | /** |
||
43 | * Checks wether the named service exists or not. |
||
44 | * |
||
45 | * @param string $name The service name to look for. |
||
46 | * @return boolean |
||
47 | */ |
||
48 | public static function has($name) |
||
54 | |||
55 | /** |
||
56 | * Checks wether the named service exists or not. |
||
57 | * |
||
58 | * @param string $name The service name to look for. |
||
59 | * @return boolean |
||
60 | */ |
||
61 | public static function debug($key=null) |
||
67 | |||
68 | } |
||
69 |
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.