Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 10
0.00% covered (danger)
0.00%
0 / 9
CRAP
0.00% covered (danger)
0.00%
0 / 1
connection
0.00% covered (danger)
0.00%
0 / 10
0.00% covered (danger)
0.00%
0 / 9
90
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
 prepare
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 query
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 quote
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 exec
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 lastInsertId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 beginTransaction
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 commit
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 rollBack
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\Connection as DriverConnection;
17use Doctrine\DBAL\Driver\Result as DriverResult;
18use Doctrine\DBAL\Driver\Statement as DriverStatement;
19use Doctrine\DBAL\ParameterType;
20
21class connection implements DriverConnection
22{
23    /**
24     * @var DriverConnection
25     */
26    private $wrapped;
27
28    /**
29     * @param DriverConnection $wrapped
30     */
31    public function __construct(DriverConnection $wrapped)
32    {
33        $this->wrapped = $wrapped;
34    }
35
36    /**
37     * {@inheritDoc}
38     */
39    public function prepare(string $sql): DriverStatement
40    {
41        return new statement($this->wrapped->prepare($sql));
42    }
43
44    /**
45     * {@inheritDoc}
46     */
47    public function query(string $sql): DriverResult
48    {
49        return new result($this->wrapped->query($sql));
50    }
51
52    /**
53     * {@inheritDoc}
54     */
55    public function quote($value, $type = ParameterType::STRING)
56    {
57        return $this->wrapped->quote($value, $type);
58    }
59
60    /**
61     * {@inheritDoc}
62     */
63    public function exec(string $sql): int
64    {
65        return $this->wrapped->exec($sql);
66    }
67
68    /**
69     * {@inheritDoc}
70     */
71    public function lastInsertId($name = null)
72    {
73        return $this->wrapped->lastInsertId($name);
74    }
75
76    /**
77     * {@inheritDoc}
78     */
79    public function beginTransaction(): bool
80    {
81        return $this->wrapped->beginTransaction();
82    }
83
84    /**
85     * {@inheritDoc}
86     */
87    public function commit(): bool
88    {
89        return $this->wrapped->commit();
90    }
91
92    /**
93     * {@inheritDoc}
94     */
95    public function rollBack(): bool
96    {
97        return $this->wrapped->rollBack();
98    }
99}