GetPickupLocationCommand   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
use Ticaje\BookingApi\Application\Signatures\UseCase\Command\GetPickupLocationCommandSignature;
14
15
/**
16
 * Class GetPickupLocationCommand
17
 * @package Ticaje\BookingApi\Application\UseCase\Command
18
 */
19
class GetPickupLocationCommand implements GetPickupLocationCommandSignature
20
{
21
    use BaseDto;
22
23
    private $product;
24
25
    private $storeId = 0;
0 ignored issues
show
introduced by
The private property $storeId is not used, and could be removed.
Loading history...
26
27
    private $fromDate;
0 ignored issues
show
introduced by
The private property $fromDate is not used, and could be removed.
Loading history...
28
29
    private $toDate;
0 ignored issues
show
introduced by
The private property $toDate is not used, and could be removed.
Loading history...
30
31
    private $aggregate;
0 ignored issues
show
introduced by
The private property $aggregate is not used, and could be removed.
Loading history...
32
33
    /**
34
     * @inheritDoc
35
     */
36
    public function setProduct(&$product): GetPickupLocationCommandSignature
37
    {
38
        $this->product = $product;
39
        return $this;
40
    }
41
}
42