Completed
Push — master ( f7d051...7cf7a4 )
by Sébastien
03:48
created

JasperReport   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 23
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1
ccs 0
cts 9
cp 0
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\V6;
6
7
use Soluble\Japha\Interfaces\JavaObject;
8
use Soluble\Japha\Bridge\Adapter as BridgeAdapter;
9
use Soluble\Jasper\Proxy\RemoteJavaObjectProxyInterface;
10
11
class JasperReport implements RemoteJavaObjectProxyInterface
12
{
13
    /**
14
     * @var BridgeAdapter
15
     */
16
    protected $ba;
17
18
    /**
19
     * @var \Soluble\Japha\Interfaces\JavaObject
20
     */
21
    protected $jasperReport;
22
23
    public function __construct(BridgeAdapter $bridgeAdapter)
24
    {
25
        $this->ba = $bridgeAdapter;
26
        $this->jasperReport = $this->ba->java('net.sf.jasperreports.engine.JasperReport');
27
    }
28
29
    public function getJavaProxiedObject(): JavaObject
30
    {
31
        return $this->jasperReport;
32
    }
33
}
34