GetPriceCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setProduct() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * Application Command Class
6
 * @package Ticaje_BookingApi
7
 * @author Hector Luis Barrientos <[email protected]>
8
 */
9
10
namespace Ticaje\BookingApi\Application\UseCase\Command;
11
12
use Ticaje\Contract\Traits\BaseDto;
13
14
use Ticaje\BookingApi\Application\Signatures\UseCase\Command\GetPriceCommandSignature;
15
16
/**
17
 * Class GetPriceCommand
18
 * @package Ticaje\BookingApi\Application\UseCase\Command
19
 */
20
class GetPriceCommand implements GetPriceCommandSignature
21
{
22
    use BaseDto;
23
24
    private $product;
25
26
    private $storeId = 0;
0 ignored issues
show
introduced by
The private property $storeId is not used, and could be removed.
Loading history...
27
28
    private $fromDate;
0 ignored issues
show
introduced by
The private property $fromDate is not used, and could be removed.
Loading history...
29
30
    private $toDate;
0 ignored issues
show
introduced by
The private property $toDate is not used, and could be removed.
Loading history...
31
32
    private $aggregate;
0 ignored issues
show
introduced by
The private property $aggregate is not used, and could be removed.
Loading history...
33
34
    /**
35
     * @inheritDoc
36
     */
37
    public function setProduct(&$product): GetPriceCommandSignature
38
    {
39
        $this->product = $product;
40
        return $this;
41
    }
42
}
43