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

CalculationSender   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 12
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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