summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Driver/Middleware/AbstractResultMiddleware.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/Middleware/AbstractResultMiddleware.php')
-rw-r--r--vendor/doctrine/dbal/src/Driver/Middleware/AbstractResultMiddleware.php68
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
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Driver\Middleware;
6
7use Doctrine\DBAL\Driver\Result;
8
9abstract 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}