Passed
Push — master ( 8b4203...c04040 )
by Nashwan
02:43 queued 10s
created

MailerTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 24
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setMailer() 0 3 1
A getMailer() 0 3 1
1
<?php
2
/**
3
 * @package    EBloodBank
4
 * @subpackage Traits
5
 * @since      1.6
6
 */
7
namespace EBloodBank\Traits;
8
9
use Swift_Mailer;
10
11
/**
12
 * @since 1.6
13
 */
14
trait MailerTrait
15
{
16
    /**
17
     * @var   \Swift_Mailer
18
     * @since 1.6
19
     */
20
    protected $mailer;
21
22
    /**
23
     * @return \Swift_Mailer
24
     * @since  1.6
25
     */
26
    public function getMailer()
27
    {
28
        return $this->mailer;
29
    }
30
31
    /**
32
     * @return void
33
     * @since  1.6
34
     */
35
    public function setMailer(Swift_Mailer $mailer)
36
    {
37
        $this->mailer = $mailer;
38
    }
39
}
40