Passed
Push — feature/crete-subscription ( 54efc4 )
by Darío
07:19
created

ShippingDetail   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
eloc 11
c 1
b 0
f 0
dl 0
loc 33
ccs 0
cts 12
cp 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 4 1
A getName() 0 3 1
A getAddress() 0 3 1
A setName() 0 5 1
A setAddress() 0 5 1
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