TimeoutPurchase   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getPurchaseId() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: imhotek
5
 * Date: 29/11/16
6
 * Time: 12:52
7
 */
8
9
namespace ConferenceTools\Tickets\Domain\Command\Ticket;
10
11
12
use Carnage\Cqrs\Command\CommandInterface;
13
14
class TimeoutPurchase implements CommandInterface
15
{
16
    /**
17
     * @var string
18
     */
19
    private $purchaseId;
20
21
    /**
22
     * TimeoutPurchase constructor.
23
     * @param $purchaseId
24
     */
25
    public function __construct(string $purchaseId)
26
    {
27
        $this->purchaseId = $purchaseId;
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    public function getPurchaseId(): string
34
    {
35
        return $this->purchaseId;
36
    }
37
}