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

FindComplexResponse   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

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