. */ namespace Doctrine\DBAL\Driver; /** * The PDO implementation of the Statement interface. * Used by all PDO-based drivers. * * @since 2.0 */ class PDOStatement extends \PDOStatement implements Statement { private function __construct() {} public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null) { // This thin wrapper is necessary to shield against the weird signature // of PDOStatement::setFetchMode(): even if the second and third // parameters are optional, PHP will not let us remove it from this // declaration. if ($arg2 === null && $arg3 === null) { return parent::setFetchMode($fetchMode); } if ($arg3 === null) { return parent::setFetchMode($fetchMode, $arg2); } return parent::setFetchMode($fetchMode, $arg2, $arg3); } }