Passed
Push — feature/refactor-subscription-... ( 715046 )
by Darío
02:29
created

ShippingDetailName::getFullName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace PaymentGateway\PayPalSdk\Subscriptions;
4
5
class ShippingDetailName
6
{
7
    private string $fullName;
8
9 6
    public function __construct(string $fullName)
10
    {
11 6
        $this->fullName = $fullName;
12 6
    }
13
14 1
    public function getFullName(): ?string
15
    {
16 1
        return $this->fullName;
17
    }
18
19 1
    public function setFullName(string $fullName): self
20
    {
21 1
        $this->fullName = $fullName;
22
23 1
        return $this;
24
    }
25
26 3
    public function toArray(): array
27
    {
28
        return [
29 3
            'full_name' => $this->fullName
30
        ];
31
    }
32
}
33