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 ( d65a0b...086b40 )
by Alex
01:57
created

Mail::bccs()   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
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Conversio\Mail;
3
4
use Conversio\Mail\Address\Address;
5
use Conversio\Mail\Address\AddressContainer;
6
use Conversio\Mail\Attachment\AttachmentContainer;
7
8
/**
9
 * Created by PhpStorm.
10
 * User: alex
11
 * Date: 07.12.16
12
 * Time: 22:13
13
 */
14
class Mail
15
{
16
    /**
17
     * @var string $id
18
     */
19
    private $id;
20
21
    /**
22
     * @var Address
23
     */
24
    private $sender;
25
26
    /**
27
     * @var Content
28
     */
29
    private $content;
30
31
    /**
32
     * @var AddressContainer
33
     */
34
    private $recipients;
35
36
    /**
37
     * @var AddressContainer
38
     */
39
    private $ccs;
40
41
    /**
42
     * @var AddressContainer
43
     */
44
    private $bccs;
45
46
    /**
47
     * @var AttachmentContainer
48
     */
49
    private $attachments;
50
51
    public function __construct(Address $sender)
52
    {
53
        $this->sender      = $sender;
54
        $this->content     = new Content();
55
        $this->recipients  = new AddressContainer();
56
        $this->ccs         = new AddressContainer();
57
        $this->bccs        = new AddressContainer();
58
        $this->attachments = new AttachmentContainer();
59
    }
60
61
    /**
62
     * @return Content
63
     */
64
    public function content(): Content
65
    {
66
        return $this->content;
67
    }
68
69
    /**
70
     * @return AddressContainer
71
     */
72
    public function recipients(): AddressContainer
73
    {
74
        return $this->recipients;
75
    }
76
77
    /**
78
     * @return Address
79
     */
80
    public function sender(): Address
81
    {
82
        return $this->sender;
83
    }
84
85
    /**
86
     * @return AddressContainer
87
     */
88
    public function ccs(): AddressContainer
89
    {
90
        return $this->ccs;
91
    }
92
93
    /**
94
     * @return AddressContainer
95
     */
96
    public function bccs(): AddressContainer
97
    {
98
        return $this->bccs;
99
    }
100
101
    /**
102
     * @return AttachmentContainer
103
     */
104
    public function attachments(): AttachmentContainer
105
    {
106
        return $this->attachments;
107
    }
108
109
    /**
110
     * @return string
111
     */
112
    public function getId(): string
113
    {
114
        return $this->id;
115
    }
116
117
    /**
118
     * @param string $id
119
     */
120
    public function setId(string $id)
121
    {
122
        $this->id = $id;
123
    }
124
125
}