1 | <?php |
||
13 | class Describe |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $columns = []; |
||
19 | |||
20 | /** |
||
21 | * @var \Rougin\Describe\Driver\DriverInterface |
||
22 | */ |
||
23 | protected $driver; |
||
24 | |||
25 | /** |
||
26 | * @param \Rougin\Describe\Driver\DriverInterface $driver |
||
27 | */ |
||
28 | 69 | public function __construct(\Rougin\Describe\Driver\DriverInterface $driver) |
|
32 | |||
33 | /** |
||
34 | * Gets the primary key in the specified table. |
||
35 | * |
||
36 | * @param string $table |
||
37 | * @return string |
||
38 | */ |
||
39 | 12 | public function getPrimaryKey($table) |
|
55 | |||
56 | /** |
||
57 | * Returns the result. |
||
58 | * |
||
59 | * @param string $table |
||
|
|||
60 | * @return array |
||
61 | * @throws \Rougin\Describe\Exceptions\TableNameNotFoundException |
||
62 | */ |
||
63 | 45 | public function getTable($tableName) |
|
75 | |||
76 | /** |
||
77 | * Shows the list of tables. |
||
78 | * |
||
79 | * @return array |
||
80 | */ |
||
81 | 12 | public function showTables() |
|
85 | |||
86 | /** |
||
87 | * Calls methods from this class in underscore case. |
||
88 | * |
||
89 | * @param string $method |
||
90 | * @param mixed $parameters |
||
91 | * @return mixed |
||
92 | */ |
||
93 | 36 | public function __call($method, $parameters) |
|
97 | } |
||
98 |
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.