TicketPurchaseCreated::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: imhotek
5
 * Date: 28/11/16
6
 * Time: 18:21
7
 */
8
9
namespace ConferenceTools\Tickets\Domain\Event\Ticket;
10
11
use JMS\Serializer\Annotation as Jms;
12
use Carnage\Cqrs\Event\EventInterface;
13
use ConferenceTools\Tickets\Domain\ValueObject\Money;
14
15
class TicketPurchaseCreated implements EventInterface
16
{
17
    /**
18
     * @Jms\Type("string")
19
     * @var string
20
     */
21
    private $id;
22
23
    /**
24
     * TicketPurchaseTotalPriceCalculated constructor.
25
     * @param string $id
26
     */
27
    public function __construct(string $id)
28
    {
29
        $this->id = $id;
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getId()
36
    {
37
        return $this->id;
38
    }
39
}