Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 13
0.00% covered (danger)
0.00%
0 / 10
CRAP
0.00% covered (danger)
0.00%
0 / 1
result
0.00% covered (danger)
0.00%
0 / 13
0.00% covered (danger)
0.00%
0 / 10
132
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 fetchNumeric
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 fetchAssociative
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 fetchOne
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 fetchAllNumeric
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 fetchAllAssociative
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
6
 fetchFirstColumn
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 rowCount
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 columnCount
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 free
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 *
4 * This file is part of the phpBB Forum Software package.
5 *
6 * @copyright (c) phpBB Limited <https://www.phpbb.com>
7 * @license GNU General Public License, version 2 (GPL-2.0)
8 *
9 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14namespace phpbb\db\doctrine\oci8;
15
16use Doctrine\DBAL\Driver\Result as DriverResult;
17
18class result implements DriverResult
19{
20    /**
21     * @var DriverResult
22     */
23    private $wrapped;
24
25    /**
26     * @param DriverResult $wrapped
27     */
28    public function __construct(DriverResult $wrapped)
29    {
30        $this->wrapped = $wrapped;
31    }
32
33    /**
34     * {@inheritDoc}
35     */
36    public function fetchNumeric()
37    {
38        return $this->wrapped->fetchNumeric();
39    }
40
41    /**
42     * {@inheritDoc}
43     */
44    public function fetchAssociative()
45    {
46        return array_change_key_case($this->wrapped->fetchAssociative(), CASE_LOWER);
47    }
48
49    /**
50     * {@inheritDoc}
51     */
52    public function fetchOne()
53    {
54        return $this->wrapped->fetchOne();
55    }
56
57    /**
58     * {@inheritDoc}
59     */
60    public function fetchAllNumeric(): array
61    {
62        return $this->wrapped->fetchAllNumeric();
63    }
64
65    /**
66     * {@inheritDoc}
67     */
68    public function fetchAllAssociative(): array
69    {
70        $rows = [];
71        foreach ($this->wrapped->fetchAllAssociative() as $row)
72        {
73            $rows[] = array_change_key_case($row, CASE_LOWER);
74        }
75        return $rows;
76    }
77
78    /**
79     * {@inheritDoc}
80     */
81    public function fetchFirstColumn(): array
82    {
83        return $this->wrapped->fetchFirstColumn();
84    }
85
86    /**
87     * {@inheritDoc}
88     */
89    public function rowCount(): int
90    {
91        return $this->wrapped->rowCount();
92    }
93
94    /**
95     * {@inheritDoc}
96     */
97    public function columnCount(): int
98    {
99        return $this->wrapped->columnCount();
100    }
101
102    /**
103     * {@inheritDoc}
104     */
105    public function free(): void
106    {
107        $this->wrapped->free();
108    }
109}