FindStreetResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

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