Completed
Push — master ( c8d49c...f7d051 )
by Sébastien
03:16
created

JREmptyDataSource::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Soluble\Jasper\Proxy;
6
7
use Soluble\Japha\Interfaces\JavaObject;
8
use Soluble\Japha\Bridge\Adapter as BridgeAdapter;
9
10
class JREmptyDataSource implements JRDataSourceInterface
11
{
12
    /**
13
     * @var BridgeAdapter
14
     */
15
    protected $ba;
16
17
    /**
18
     * @var \Soluble\Japha\Interfaces\JavaObject
19
     */
20
    protected $jrEmptyDataSource;
21
22 1
    public function __construct(BridgeAdapter $bridgeAdapter)
23
    {
24 1
        $this->ba = $bridgeAdapter;
25 1
        $this->jrEmptyDataSource = $this->ba->java('net.sf.jasperreports.engine.JREmptyDataSource');
26 1
    }
27
28 1
    public function getJavaProxiedObject(): JavaObject
29
    {
30 1
        return $this->jrEmptyDataSource;
31
    }
32
}
33