Test Failed
Push — main ( 80b66f...88de3c )
by Vasil
03:26
created

CalculationSender::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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