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

JasperReport   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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