TicketPurchaseTimedout   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

2 Methods

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