here is the problem, cos MysqlPreparedStatement's function addBatch() does not need arguments, only the parent MysqlStatement's function addBatch() has them. so if i declare a function with arguments, but then will have to put it in manual to ignore the argument for the users. isnt very desired solution or good user interface.
but theoratically, MysqlStatement is adhering to interface Statement and doing its job, but the child MysqlPreparedStatement is just extending the addBatch() again without arguments.
doing the same thing with just classes is allowed in PHP e.g.
class A {
function Z($r) {
}
}
class B extends A {
function Z() {
}
}
above is valid in php. but the problem arrises while using interface.