Passed
Push — main ( bb0781...3246e1 )
by Vasil
04:22
created

FindStreetRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 3
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
6
namespace VasilDakov\Speedy\Service\Location\Street;
7
8
use VasilDakov\Speedy\ToArray;
9
10
/**
11
 * Class FindStreetRequest
12
 *
13
 * @author Vasil Dakov <[email protected]>
14
 * @copyright 2009-2022 Neutrino.bg
15
 * @version 1.0
16
 */
17
class FindStreetRequest
18
{
19
    use ToArray;
20
21
    private int $siteId;
22
23
    private string $name;
24
25
    private ?string $type = null;
26
27 1
    public function __construct($siteId, $name, $type = null)
28
    {
29 1
        $this->siteId = $siteId;
30 1
        $this->name = $name;
31 1
        $this->type = $type;
32
    }
33
}
34