Passed
Push — main ( 5b7f1c...98c11d )
by Vasil
03:17
created

Sender::getDropoffOfficeId()   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
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VasilDakov\Speedy\Model;
6
7
use VasilDakov\Speedy\ToArray;
8
9
/**
10
 * Class Sender
11
 *
12
 * @author Vasil Dakov <[email protected]>
13
 * @copyright 2009-2022 Neutrino.bg
14
 * @version 1.0
15
 * @psalm-suppress MissingConstructor
16
 */
17
class Sender extends Client
18
{
19
    use ToArray;
20
21
    /**
22
     * @var int|null
23
     */
24
    private ?int $dropoffOfficeId = null;
25
26
    /**
27
     * @return ?int
28
     */
29 1
    public function getDropoffOfficeId(): ?int
30
    {
31 1
        return $this->dropoffOfficeId;
32
    }
33
34
    /**
35
     * @param ?int $dropoffOfficeId
36
     */
37 1
    public function setDropoffOfficeId(?int $dropoffOfficeId): void
38
    {
39 1
        $this->dropoffOfficeId = $dropoffOfficeId;
40
    }
41
}
42