HasPaymentPreferences   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 60%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 14
ccs 3
cts 5
cp 0.6
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setPaymentPreferences() 0 5 1
A getPaymentPreferences() 0 3 1
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