Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 5
CRAP
0.00% covered (danger)
0.00%
0 / 1
driver
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 5
30
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
 connect
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getDatabasePlatform
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getSchemaManager
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getExceptionConverter
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\Connection as DoctrineConnection;
17use Doctrine\DBAL\Driver\API\ExceptionConverter;
18use Doctrine\DBAL\Platforms\AbstractPlatform;
19use Doctrine\DBAL\Driver as DoctrineDriver;
20use Doctrine\DBAL\Driver\OCI8\Driver as OCI8Driver;
21
22class driver implements DoctrineDriver
23{
24    /**
25     * @var DoctrineDriver
26     */
27    private $wrapped;
28
29    public function __construct()
30    {
31        $this->wrapped = new OCI8Driver();
32    }
33
34    /**
35     * {@inheritDoc}
36     */
37    public function connect(array $params)
38    {
39        return new connection($this->wrapped->connect($params));
40    }
41
42    /**
43     * {@inheritDoc}
44     */
45    public function getDatabasePlatform()
46    {
47        return $this->wrapped->getDatabasePlatform();
48    }
49
50    /**
51     * {@inheritDoc}
52     */
53    public function getSchemaManager(DoctrineConnection $conn, AbstractPlatform $platform)
54    {
55        return new schema_manager($conn, $platform);
56    }
57
58    /**
59     * {@inheritDoc}
60     */
61    public function getExceptionConverter(): ExceptionConverter
62    {
63        return $this->wrapped->getExceptionConverter();
64    }
65}