ReportingCloudFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 5 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\Mvc\Controller\Plugin;
16
17
use Interop\Container\ContainerInterface;
18
use Zend\ServiceManager\Factory\FactoryInterface;
19
20
/**
21
 * Class ReportingCloudFactory
22
 *
23
 * @package TxTextControl\ReportingCloud
24
 * @author  Jonathan Maron (@JonathanMaron)
25
 */
26
class ReportingCloudFactory implements FactoryInterface
27
{
28
    /**
29
     * @param ContainerInterface $container
30
     * @param string             $requestedName
31
     * @param array|null         $options
32
     *
33
     * @return ReportingCloud
34
     */
35
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null): ReportingCloud
36
    {
37
        $reportingCloud = $container->get('ReportingCloud');
38
39
        return new ReportingCloud($reportingCloud);
40
    }
41
}
42