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
c 0
b 0
f 0
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
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 Zend Framework 3 Module
6
 *
7
 * Zend Framework 3 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/Je5US for the canonical source repository
11
 * @license   https://github.com/TextControl/txtextcontrol-reportingcloud-php-zf-module/blob/master/LICENSE.md
12
 * @copyright © 2020 Text Control GmbH
13
 */
14
15
namespace TxTextControl\ReportingCloud\View\Helper;
16
17
use TxTextControl\ReportingCloud\ReportingCloud as TxTextControlReportingCloudReportingCloud;
18
use Zend\View\Helper\AbstractHelper;
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 $reportingCloud;
32
33
    /**
34
     * ReportingCloud constructor
35
     *
36
     * @param TxTextControlReportingCloudReportingCloud $reportingCloud
37
     */
38 4
    public function __construct(TxTextControlReportingCloudReportingCloud $reportingCloud)
39
    {
40 4
        $this->reportingCloud = $reportingCloud;
41 4
    }
42
43
    /**
44
     * @return TxTextControlReportingCloudReportingCloud
45
     */
46 4
    public function __invoke():TxTextControlReportingCloudReportingCloud
47
    {
48 4
        return $this->reportingCloud;
49
    }
50
}
51