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::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 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
}