Passed
Push — main ( 2bc5a4...5ffc2f )
by Vasil
16:31 queued 13:09
created

TrackResponse   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

3 Methods

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