Recipient   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPickupOfficeId() 0 3 1
A toArray() 0 3 1
A setPickupOfficeId() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VasilDakov\Speedy\Model;
6
7
use JMS\Serializer\Annotation as Serializer;
8
9
/**
10
 * Class Recipient.
11
 *
12
 * * @Serializer\AccessType("public_method")
13
 *
14
 * @author Vasil Dakov <[email protected]>
15
 * @copyright 2009-2022 Neutrino.bg
16
 *
17
 * @version 1.0
18
 */
19
class Recipient
20
{
21
    /**
22
     * @Serializer\Type("int")
23
     */
24
    private int $pickupOfficeId;
25
26 1
    public function getPickupOfficeId(): int
27
    {
28 1
        return $this->pickupOfficeId;
29
    }
30
31 1
    public function setPickupOfficeId(int $pickupOfficeId): void
32
    {
33 1
        $this->pickupOfficeId = $pickupOfficeId;
34
    }
35
36 1
    public function toArray(): array
37
    {
38 1
        return [];
39
    }
40
}
41