Passed
Pull Request — 1.x (#36)
by Darío
04:17 queued 02:03
created

ShippingDetail::setAddress()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace PaymentGateway\PayPalSdk\Subscriptions;
4
5
class ShippingDetail
6
{
7
    private ?ShippingDetailName $name;
8
    private ?ShippingDetailAddressPortable $address;
9
10
    public function getName(): ?ShippingDetailName
11
    {
12
        return $this->name;
13
    }
14
15
    public function setName(?ShippingDetailName $name): self
16
    {
17
        $this->name = $name;
18
19
        return $this;
20
    }
21
22
    public function getAddress(): ?ShippingDetailAddressPortable
23
    {
24
        return $this->address;
25
    }
26
27
    public function setAddress(?ShippingDetailAddressPortable $address): self
28
    {
29
        $this->address = $address;
30
31
        return $this;
32
    }
33
34
    public function toArray(): array
35
    {
36
        return [
37
            ''
38
        ];
39
    }
40
}
41