mailpoet
/
vendor-prefixed
/
doctrine
/
dbal
/
src
/
Driver
/
Middleware
/
AbstractResultMiddleware.php
AbstractConnectionMiddleware.php
2 years ago
AbstractDriverMiddleware.php
2 years ago
AbstractResultMiddleware.php
2 years ago
AbstractStatementMiddleware.php
2 years ago
index.php
2 years ago
AbstractResultMiddleware.php
49 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Doctrine\DBAL\Driver\Middleware; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | use MailPoetVendor\Doctrine\DBAL\Driver\Result; |
| 5 | abstract class AbstractResultMiddleware implements Result |
| 6 | { |
| 7 | private Result $wrappedResult; |
| 8 | public function __construct(Result $result) |
| 9 | { |
| 10 | $this->wrappedResult = $result; |
| 11 | } |
| 12 | public function fetchNumeric() |
| 13 | { |
| 14 | return $this->wrappedResult->fetchNumeric(); |
| 15 | } |
| 16 | public function fetchAssociative() |
| 17 | { |
| 18 | return $this->wrappedResult->fetchAssociative(); |
| 19 | } |
| 20 | public function fetchOne() |
| 21 | { |
| 22 | return $this->wrappedResult->fetchOne(); |
| 23 | } |
| 24 | public function fetchAllNumeric() : array |
| 25 | { |
| 26 | return $this->wrappedResult->fetchAllNumeric(); |
| 27 | } |
| 28 | public function fetchAllAssociative() : array |
| 29 | { |
| 30 | return $this->wrappedResult->fetchAllAssociative(); |
| 31 | } |
| 32 | public function fetchFirstColumn() : array |
| 33 | { |
| 34 | return $this->wrappedResult->fetchFirstColumn(); |
| 35 | } |
| 36 | public function rowCount() : int |
| 37 | { |
| 38 | return $this->wrappedResult->rowCount(); |
| 39 | } |
| 40 | public function columnCount() : int |
| 41 | { |
| 42 | return $this->wrappedResult->columnCount(); |
| 43 | } |
| 44 | public function free() : void |
| 45 | { |
| 46 | $this->wrappedResult->free(); |
| 47 | } |
| 48 | } |
| 49 |