Passed
Push — master ( bd81e8...2fa59e )
by Jhao
02:18
created

DeliveryTime   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMin() 0 3 1
A getMax() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Appwilio\RussianPostSDK\Dispatching\Entities;
6
7
use Appwilio\RussianPostSDK\Dispatching\DataAware;
8
9
final class DeliveryTime
10
{
11
    use DataAware;
12
13 1
    public function getMin(): ?int
14
    {
15 1
        return $this->get('min-days');
16
    }
17
18 1
    public function getMax(): int
19
    {
20 1
        return $this->get('max-days');
21
    }
22
}
23