Passed
Push — v3_compat ( af37b8...c7ae23 )
by Mateusz
03:38
created

ZendViewRendererFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 0 Features 0
Metric Value
wmc 1
c 4
b 0
f 0
lcom 0
cbo 2
dl 0
loc 10
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 7 1
1
<?php
2
/**
3
 * MtMail - e-mail module for Zend Framework 2
4
 *
5
 * @link      http://github.com/mtymek/MtMail
6
 * @copyright Copyright (c) 2013-2014 Mateusz Tymek
7
 * @license   BSD 2-Clause
8
 */
9
10
namespace MtMail\Factory;
11
12
use Interop\Container\ContainerInterface;
13
use MtMail\Renderer\ZendView;
14
15
class ZendViewRendererFactory
16
{
17 1
    public function __invoke(ContainerInterface $serviceLocator)
18
    {
19 1
        $view = $serviceLocator->get('ViewManager')->getView();
20 1
        $service = new ZendView($view);
21
22 1
        return $service;
23
    }
24
}
25