ReportingCloud::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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\Mvc\Controller\Plugin;
16
17
use Laminas\Mvc\Controller\Plugin\AbstractPlugin;
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 AbstractPlugin
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