diff options
| author | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
| commit | bf6655a534a6775d30cafa67bd801276bda1d98d (patch) | |
| tree | c6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/doctrine/dbal/src/Driver/Middleware/AbstractResultMiddleware.php | |
| parent | 94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff) | |
| download | AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.tar.gz AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.tar.bz2 AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip | |
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/Middleware/AbstractResultMiddleware.php')
| -rw-r--r-- | vendor/doctrine/dbal/src/Driver/Middleware/AbstractResultMiddleware.php | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Driver/Middleware/AbstractResultMiddleware.php b/vendor/doctrine/dbal/src/Driver/Middleware/AbstractResultMiddleware.php new file mode 100644 index 0000000..7da2f99 --- /dev/null +++ b/vendor/doctrine/dbal/src/Driver/Middleware/AbstractResultMiddleware.php | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Driver\Middleware; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Driver\Result; | ||
| 8 | |||
| 9 | abstract class AbstractResultMiddleware implements Result | ||
| 10 | { | ||
| 11 | public function __construct(private readonly Result $wrappedResult) | ||
| 12 | { | ||
| 13 | } | ||
| 14 | |||
| 15 | public function fetchNumeric(): array|false | ||
| 16 | { | ||
| 17 | return $this->wrappedResult->fetchNumeric(); | ||
| 18 | } | ||
| 19 | |||
| 20 | public function fetchAssociative(): array|false | ||
| 21 | { | ||
| 22 | return $this->wrappedResult->fetchAssociative(); | ||
| 23 | } | ||
| 24 | |||
| 25 | public function fetchOne(): mixed | ||
| 26 | { | ||
| 27 | return $this->wrappedResult->fetchOne(); | ||
| 28 | } | ||
| 29 | |||
| 30 | /** | ||
| 31 | * {@inheritDoc} | ||
| 32 | */ | ||
| 33 | public function fetchAllNumeric(): array | ||
| 34 | { | ||
| 35 | return $this->wrappedResult->fetchAllNumeric(); | ||
| 36 | } | ||
| 37 | |||
| 38 | /** | ||
| 39 | * {@inheritDoc} | ||
| 40 | */ | ||
| 41 | public function fetchAllAssociative(): array | ||
| 42 | { | ||
| 43 | return $this->wrappedResult->fetchAllAssociative(); | ||
| 44 | } | ||
| 45 | |||
| 46 | /** | ||
| 47 | * {@inheritDoc} | ||
| 48 | */ | ||
| 49 | public function fetchFirstColumn(): array | ||
| 50 | { | ||
| 51 | return $this->wrappedResult->fetchFirstColumn(); | ||
| 52 | } | ||
| 53 | |||
| 54 | public function rowCount(): int|string | ||
| 55 | { | ||
| 56 | return $this->wrappedResult->rowCount(); | ||
| 57 | } | ||
| 58 | |||
| 59 | public function columnCount(): int | ||
| 60 | { | ||
| 61 | return $this->wrappedResult->columnCount(); | ||
| 62 | } | ||
| 63 | |||
| 64 | public function free(): void | ||
| 65 | { | ||
| 66 | $this->wrappedResult->free(); | ||
| 67 | } | ||
| 68 | } | ||
