FindComplexRequest::setSiteId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VasilDakov\Speedy\Service\Location\Complex;
6
7
use VasilDakov\Speedy\Traits\ToArray;
8
9
/**
10
 * Class FindComplexRequest.
11
 *
12
 * @author Vasil Dakov <[email protected]>
13
 * @copyright 2009-2022 Neutrino.bg
14
 *
15
 * @version 1.0
16
 */
17
class FindComplexRequest
18
{
19
    use ToArray;
0 ignored issues
show
Bug introduced by
The trait VasilDakov\Speedy\Traits\ToArray requires the property $value which is not provided by VasilDakov\Speedy\Servic...plex\FindComplexRequest.
Loading history...
20
21
    private int $siteId;
22
23
    private string $name;
24
25 3
    public function __construct(int $siteId, string $name)
26
    {
27 3
        $this->setSiteId($siteId);
28 3
        $this->setName($name);
29
    }
30
31 3
    public function setSiteId(int $siteId): void
32
    {
33 3
        $this->siteId = $siteId;
34
    }
35
36 1
    public function getSiteId(): int
37
    {
38 1
        return $this->siteId;
39
    }
40
41 3
    public function setName(string $name): void
42
    {
43 3
        $this->name = $name;
44
    }
45
46 1
    public function getName(): string
47
    {
48 1
        return $this->name;
49
    }
50
}
51