Test Failed
Push — main ( d030ca...7189b9 )
by Vasil
05:52
created

DestinationServicesRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 30
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRecipient() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the Neutrino package.
5
 *
6
 * (c) Vasil Dakov <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace VasilDakov\Speedy\Service\Service;
15
16
use DateTime;
17
use VasilDakov\Speedy\Service\Calculation\CalculationRecipient;
18
use VasilDakov\Speedy\Service\Calculation\CalculationSender;
19
use VasilDakov\Speedy\ToArray;
20
21
/**
22
 * Class DestinationServicesRequest
23
 *
24
 * @author Vasil Dakov <[email protected]>
25
 * @copyright 2009-2023 Neutrino.bg
26
 * @version 1.0
27
 */
28
class DestinationServicesRequest
29
{
30
    use ToArray;
31
32
    /**
33
     * @var DateTime|null
34
     */
35
    private ?DateTime $date = null;
0 ignored issues
show
introduced by
The private property $date is not used, and could be removed.
Loading history...
36
37
    /**
38
     * @var CalculationSender|null
39
     */
40
    private ?CalculationSender $sender = null;
0 ignored issues
show
introduced by
The private property $sender is not used, and could be removed.
Loading history...
41
42
    /**
43
     * @var CalculationRecipient
44
     */
45
    private CalculationRecipient $recipient;
46
47
    public function __construct(CalculationRecipient $recipient)
48
    {
49
        $this->recipient = $recipient;
50
    }
51
52
    /**
53
     * @return CalculationRecipient
54
     */
55
    public function getRecipient(): CalculationRecipient
56
    {
57
        return $this->recipient;
58
    }
59
}
60