/** * Constructor * * @param \Cake\Database\StatementInterface $statement Statement implementation such as PDOStatement * @param \Cake\Database\Driver $driver Driver instance */ public function __construct($statement = null, $driver = null) { parent::__construct($statement, $driver); $this->_reset(); }
/** * Constructor * * @param \Cake\Database\StatementInterface $statement The statement to decorate. * @param \Cake\Database\Driver $driver The driver instance used by the statement. * @param callable $callback The callback to apply to results before they are returned. */ public function __construct($statement, $driver, $callback) { parent::__construct($statement, $driver); $this->_callback = $callback; }