Passed
Push — master ( 8b7283...1e8f2c )
by Tomasz
01:38
created

Command::getKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 *
4
 * This file is part of the Aggrego.
5
 * (c) Tomasz Kunicki <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 */
11
12
declare(strict_types = 1);
13
14
namespace Aggrego\Domain\Api\Command\TransformBoard;
15
16
use Aggrego\AggregateEventConsumer\Uuid;
17
use Aggrego\Domain\Board\Key;
18
19
class Command
20
{
21
    /** @var Uuid */
22
    private $boardUuid;
23
24
    /** @var Key */
25
    private $key;
26
27
    public function __construct(string $boardUuid, array $key)
28
    {
29
        $this->boardUuid = new Uuid($boardUuid);
30
        $this->key = new Key($key);
31
    }
32
33
    public function getBoardUuid(): Uuid
34
    {
35
        return $this->boardUuid;
36
    }
37
38
    public function getKey(): Key
39
    {
40
        return $this->key;
41
    }
42
}
43