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 ( ed2944...746095 )
by Alex
03:36
created

AttachmentContainer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A addAttachment() 0 4 1
A asArray() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: alex
5
 * Date: 08.12.16
6
 * Time: 20:54
7
 */
8
9
namespace Conversio\Mail\Attachment;
10
11
use Conversio\Mail\Container\AbstractContainer;
12
13
/**
14
 * Class AttachmentContainer
15
 * @package Conversio\Mail\Attachment
16
 */
17
class AttachmentContainer extends AbstractContainer
18
{
19
    /**
20
     * @param AttachmentInterface $attachment
21
     */
22
    public function addAttachment(AttachmentInterface $attachment)
23
    {
24
        $this->store[] = $attachment;
25
    }
26
27
    /**
28
     * @return AttachmentInterface[]
29
     */
30
    public function asArray(): array
31
    {
32
        return parent::asArray();
33
    }
34
}