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

Sender   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDropoffOfficeId() 0 3 1
A setDropoffOfficeId() 0 3 1
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