Completed
Push — master ( fd90eb...52b814 )
by Stefan
04:00
created

Prepaid   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 75%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 28
ccs 6
cts 8
cp 0.75
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getBillShipper() 0 4 1
A __construct() 0 4 1
A setBillShipper() 0 4 1
1
<?php
2
/*
3
 * Copyright © Eduard Sukharev
4
 *
5
 * For a full license, see the LICENSE file.
6
 */
7
8
namespace Ups\Entity;
9
10
/**
11
 * @author Eduard Sukharev <[email protected]>
12
 */
13
class Prepaid
14
{
15
    /**
16
     * @var BillShipper
17
     */
18
    private $billShipper;
19
20 2
    public function __construct($attributes = null)
21
    {
22 2
        $this->setBillShipper(new BillShipper($attributes));
23 2
    }
24
25
    /**
26
     * @return BillShipper
27
     */
28
    public function getBillShipper()
29
    {
30
        return $this->billShipper;
31
    }
32
33
    /**
34
     * @param BillShipper $billShipper
35
     */
36 2
    public function setBillShipper($billShipper)
37
    {
38 2
        $this->billShipper = $billShipper;
39 2
    }
40
}
41