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 ( 0122c6...b3bc48 )
by Alex
02:15
created

AddressContainer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

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