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 ( 803145...65bdb2 )
by Alex
02:52
created

Mail::getCcs()   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
    /**
18
     * @var Address
19
     */
20
    private $sender;
21
22
    /**
23
     * @var Content
24
     */
25
    private $content;
26
27
    /**
28
     * @var AddressContainer
29
     */
30
    private $recipients;
31
32
    /**
33
     * @var AddressContainer
34
     */
35
    private $ccs;
36
37
    /**
38
     * @var AddressContainer
39
     */
40
    private $bccs;
41
42
    /**
43
     * @var AttachmentContainer
44
     */
45
    private $attachments;
46
47
    public function __construct(Address $sender)
48
    {
49
        $this->sender      = $sender;
50
        $this->content     = new Content();
51
        $this->recipients  = new AddressContainer();
52
        $this->ccs         = new AddressContainer();
53
        $this->bccs        = new AddressContainer();
54
        $this->attachments = new AttachmentContainer();
55
    }
56
57
    /**
58
     * @return Content
59
     */
60
    public function getContent(): Content
61
    {
62
        return $this->content;
63
    }
64
65
    /**
66
     * @return AddressContainer
67
     */
68
    public function getRecipients(): AddressContainer
69
    {
70
        return $this->recipients;
71
    }
72
73
    /**
74
     * @return Address
75
     */
76
    public function getSender(): Address
77
    {
78
        return $this->sender;
79
    }
80
81
    /**
82
     * @return AddressContainer
83
     */
84
    public function getCcs(): AddressContainer
85
    {
86
        return $this->ccs;
87
    }
88
89
    /**
90
     * @return AddressContainer
91
     */
92
    public function getBccs(): AddressContainer
93
    {
94
        return $this->bccs;
95
    }
96
97
    /**
98
     * @return AttachmentContainer
99
     */
100
    public function getAttachments(): AttachmentContainer
101
    {
102
        return $this->attachments;
103
    }
104
105
}