GetContractClientsResponse::setClients()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
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