Passed
Push — master ( 9dc2b5...745713 )
by Darío
03:33 queued 01:28
created

HasPaymentPreferences::getPaymentPreferences()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
namespace PaymentGateway\PayPalSdk\Subscriptions\Concerns;
4
5
use PaymentGateway\PayPalSdk\Subscriptions\PaymentPreferences;
6
7
trait HasPaymentPreferences
8
{
9
    protected PaymentPreferences $paymentPreferences;
10
11
    public function getPaymentPreferences(): PaymentPreferences
12
    {
13
        return $this->paymentPreferences;
14
    }
15
16 1
    public function setPaymentPreferences(PaymentPreferences $paymentPreferences): self
17
    {
18 1
        $this->paymentPreferences = $paymentPreferences;
19
20 1
        return $this;
21
    }
22
}
23