GetContractClientsResponse   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

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