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

Command   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 7
dl 0
loc 22
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getKey() 0 3 1
A getBoardUuid() 0 3 1
A __construct() 0 4 1
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