Passed
Push — master ( 745713...423bfb )
by Darío
07:06 queued 04:58
created

HasImageUrl   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 60%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getImageUrl() 0 3 1
A setImageUrl() 0 5 1
1
<?php
2
3
namespace PaymentGateway\PayPalSdk\Products\Concerns;
4
5
trait HasImageUrl
6
{
7
    protected string $imageUrl;
8
9
    public function getImageUrl(): string
10
    {
11
        return $this->imageUrl;
12
    }
13
14 8
    public function setImageUrl(string $imageUrl = ''): self
15
    {
16 8
        $this->imageUrl = $imageUrl;
17
18 8
        return $this;
19
    }
20
}
21