GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( d73fb8...9cf049 )
by Alex
02:25
created

Mailer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 29
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A send() 0 4 1
1
<?php
2
3
/**
4
 * Created by PhpStorm.
5
 * User: alex
6
 * Date: 21.12.16
7
 * Time: 19:45
8
 */
9
namespace Conversio\Mail\Mailer;
10
11
use Conversio\Mail\Mail;
12
use Conversio\Mail\Mailer\Adapter\MailerAdapterInterface;
13
14
class Mailer implements MailerInterface
15
{
16
17
    /**
18
     * @var MailerAdapterInterface
19
     */
20
    private $adapter;
21
22
    /**
23
     * Mailer constructor.
24
     *
25
     * @param MailerAdapterInterface $adapter
26
     */
27
    public function __construct(MailerAdapterInterface $adapter)
28
    {
29
        $this->adapter = $adapter;
30
    }
31
32
    /**
33
     * @param Mail $mail
34
     *
35
     * @return bool
36
     */
37
    public function send(Mail $mail): bool
38
    {
39
        return $this->adapter->send($mail);
40
    }
41
42
}