| 1 | <?php |
||
| 20 | class TableMapper implements TableMapperInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Check for the existence of a table in the currentt database |
||
| 24 | * |
||
| 25 | * @param string $table Name of table to be searched in the database |
||
| 26 | * @param DbConnnect $dbConnect Database connection object |
||
|
|
|||
| 27 | * @return string Name of the table checked |
||
| 28 | */ |
||
| 29 | public static function checkTableName($table) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @var array classname from class namespace |
||
| 47 | * @return string which is in lower case |
||
| 48 | **/ |
||
| 49 | public static function getClassName($className) |
||
| 54 | } |
||
| 55 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.