BakeMessageTrait::getIngredients()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php declare(strict_types=1);
2
/**
3
 * This file is part of the daikon-cqrs/event-sourcing project.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace Daikon\Tests\EventSourcing\Aggregate\Mock;
10
11
use Daikon\EventSourcing\Aggregate\AggregateRevision;
12
use Daikon\Interop\FromToNativeTrait;
13
use Daikon\ValueObject\TextList;
14
15
/**
16
 * @codeCoverageIgnore
17
 * @id(pizzaId, Daikon\Tests\EventSourcing\Aggregate\Mock\PizzaId)
18
 * @rev(revision, Daikon\EventSourcing\Aggregate\AggregateRevision)
19
 * @map(ingredients, Daikon\ValueObject\TextList::fromNative)
20
 */
21
trait BakeMessageTrait
22
{
23
    use FromToNativeTrait;
24
25
    private PizzaId $pizzaId;
26
27
    private AggregateRevision $revision;
28
29
    private TextList $ingredients;
30
31
    public function getPizzaId(): PizzaId
32
    {
33
        return $this->pizzaId;
34
    }
35
36
    public function getRevision(): AggregateRevision
37
    {
38
        return $this->revision;
39
    }
40
41
    public function getIngredients(): TextList
42
    {
43
        return $this->ingredients;
44
    }
45
}
46