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

Prepaid::getBillShipper()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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