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

DeliveryTime::getMin()   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
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