1 | <?php |
||
15 | class Manipulation |
||
16 | { |
||
17 | private $container; |
||
18 | |||
19 | /** |
||
20 | * Constructor. |
||
21 | * |
||
22 | * @param Symfony\Component\DependencyInjection\ContainerInterface $container |
||
23 | */ |
||
24 | public function __construct(ContainerInterface $container) |
||
28 | |||
29 | /** |
||
30 | * Create a new database object. |
||
31 | * |
||
32 | * @param DatabaseObjectInterface $databaseObject Database object. |
||
33 | * |
||
34 | * @return integer |
||
35 | */ |
||
36 | public function create(DatabaseObjectInterface $databaseObject) |
||
42 | |||
43 | /** |
||
44 | * Drop a database object. |
||
45 | * |
||
46 | * @param DatabaseObjectInterface $databaseObject Database object. |
||
47 | * @param bool $cascade Drop databse object cascade. |
||
48 | * |
||
49 | * @return integer |
||
50 | */ |
||
51 | public function drop(DatabaseObjectInterface $databaseObject, $cascade = false) |
||
60 | |||
61 | /** |
||
62 | * Clear current database. Turn database to default state - empty public schema. |
||
63 | * |
||
64 | * @return integer |
||
65 | */ |
||
66 | public function clearDatabase() |
||
72 | |||
73 | /** |
||
74 | * Execute SQL query. |
||
75 | * |
||
76 | * @param string $sql Sql query. |
||
77 | * |
||
78 | * @return integer |
||
79 | */ |
||
80 | public function execute($sql) |
||
86 | |||
87 | /** |
||
88 | * Get a command to execute. |
||
89 | * |
||
90 | * @param DatabaseObjectInterface $databaseObject Database object. |
||
91 | * @param bool $cascade Drop databse object cascade. |
||
|
|||
92 | * |
||
93 | * @return Rentgen\Schema\Command |
||
94 | */ |
||
95 | private function getCommand(DatabaseObjectInterface $databaseObject, $isCreate = true) |
||
123 | } |
||
124 |
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.