Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 4
CRAP
0.00% covered (danger)
0.00%
0 / 1
statement
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 4
20
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
 bindValue
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 bindParam
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 execute
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;
17use Doctrine\DBAL\Driver\Statement as DriverStatement;
18use Doctrine\DBAL\ParameterType;
19
20class statement implements DriverStatement
21{
22    /**
23     * @var DriverStatement
24     */
25    private $wrapped;
26
27    /**
28     * @param DriverStatement $wrapped
29     */
30    public function __construct(DriverStatement $wrapped)
31    {
32        $this->wrapped = $wrapped;
33    }
34
35    /**
36     * {@inheritDoc}
37     */
38    public function bindValue($param, $value, $type = ParameterType::STRING): bool
39    {
40        return $this->wrapped->bindValue($param, $value, $type);
41    }
42
43    /**
44     * {@inheritDoc}
45     */
46    public function bindParam($param, &$variable, $type = ParameterType::STRING, $length = null): bool
47    {
48        return $this->wrapped->bindParam($param, $variable, $type, $length);
49    }
50
51    /**
52     * {@inheritDoc}
53     */
54    public function execute($params = null): DriverResult
55    {
56        return new result($this->wrapped->execute($params));
57    }
58}