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

JREmptyDataSource   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 23
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getJavaProxiedObject() 0 4 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