MtMail::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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