ReportingCloud   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 23
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __invoke() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * ReportingCloud Laminas Module
6
 *
7
 * Laminas Module for ReportingCloud Web API. Authored and supported by Text Control GmbH.
8
 *
9
 * @link      https://www.reporting.cloud to learn more about ReportingCloud
10
 * @link      https://git.io/JexF4 for the canonical source repository
11
 * @license   https://git.io/JexFB
12
 * @copyright © 2022 Text Control GmbH
13
 */
14
15
namespace TxTextControl\ReportingCloud\View\Helper;
16
17
use Laminas\View\Helper\AbstractHelper;
18
use TxTextControl\ReportingCloud\ReportingCloud as TxTextControlReportingCloudReportingCloud;
19
20
/**
21
 * Class ReportingCloud
22
 *
23
 * @package TxTextControl\ReportingCloud
24
 * @author  Jonathan Maron (@JonathanMaron)
25
 */
26
class ReportingCloud extends AbstractHelper
27
{
28
    /**
29
     * @var TxTextControlReportingCloudReportingCloud
30
     */
31
    protected TxTextControlReportingCloudReportingCloud $reportingCloud;
32
33
    /**
34
     * ReportingCloud constructor
35
     *
36
     * @param TxTextControlReportingCloudReportingCloud $reportingCloud
37
     */
38 2
    public function __construct(TxTextControlReportingCloudReportingCloud $reportingCloud)
39
    {
40 2
        $this->reportingCloud = $reportingCloud;
41
    }
42
43
    /**
44
     * @return TxTextControlReportingCloudReportingCloud
45
     */
46 2
    public function __invoke(): TxTextControlReportingCloudReportingCloud
47
    {
48 2
        return $this->reportingCloud;
49
    }
50
}
51