<?php namespace Doctrine\DBAL\Portability; use Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware; use Doctrine\DBAL\Driver\Result as ResultInterface; use Doctrine\DBAL\Driver\Statement as DriverStatement; /** * Portability wrapper for a Statement. */ final class Statement extends AbstractStatementMiddleware { private Converter $converter; /** * Wraps <tt>Statement</tt> and applies portability measures. */ public function __construct(DriverStatement $stmt, Converter $converter) { parent::__construct($stmt); $this->converter = $converter; } /** * {@inheritdoc} */ public function execute($params = null): ResultInterface { return new Result( parent::execute($params), $this->converter, ); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Connection.php | File | 1.16 KB | 0644 |
|
Converter.php | File | 7.95 KB | 0644 |
|
Driver.php | File | 2.05 KB | 0644 |
|
Middleware.php | File | 621 B | 0644 |
|
OptimizeFlags.php | File | 1.17 KB | 0644 |
|
Result.php | File | 1.66 KB | 0644 |
|
Statement.php | File | 827 B | 0644 |
|