Completed
Push — master ( 077a27...3c5f4e )
by Stefan
05:01
created

SoldTo::setReceivingAddressName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 0
cts 4
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Ups\Entity;
4
5
class SoldTo extends ShipTo
6
{
7
    /**
8
     * @var string
9
     */
10
    private $option;
11
12
    /**
13
     * @inheritdoc
14
     */
15 1
    public function __construct(\stdClass $attributes = null)
16
    {
17 1
        parent::__construct($attributes);
18
19 1
        if (null !== $attributes) {
20
            if (isset($attributes->Option)) {
21
                $this->setOption($attributes->Option);
22
            }
23
        }
24 1
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getOption()
30
    {
31
        return $this->option;
32
    }
33
34
    /**
35
     * @param string $option
36
     *
37
     * @return $this
38
     */
39
    public function setOption($option)
40
    {
41
        $this->option = $option;
42
43
        return $this;
44
    }
45
}
46