MtMail   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __invoke() 0 4 1
1
<?php
2
/**
3
 * MtMail - e-mail module for Zend Framework
4
 *
5
 * @link      http://github.com/mtymek/MtMail
6
 * @copyright Copyright (c) 2013-2017 Mateusz Tymek
7
 * @license   BSD 2-Clause
8
 */
9
10
namespace MtMail\Controller\Plugin;
11
12
use MtMail\Service\Mail;
13
use Zend\Mvc\Controller\Plugin\AbstractPlugin;
14
15
class MtMail extends AbstractPlugin
16
{
17
    /**
18
     * @var Mail
19
     */
20
    protected $mailService;
21
22 1
    public function __construct(Mail $mailService)
23
    {
24 1
        $this->mailService = $mailService;
25 1
    }
26
27
    public function __invoke()
28
    {
29
        return $this->mailService;
30
    }
31
}
32