| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class Command |
||
| 22 | { |
||
| 23 | /** @var Uuid */ |
||
| 24 | private $boardUuid; |
||
| 25 | |||
| 26 | /** @var ShardUuid */ |
||
| 27 | private $shardUuid; |
||
| 28 | |||
| 29 | /** @var Profile */ |
||
| 30 | private $profile; |
||
| 31 | |||
| 32 | /** @var Data */ |
||
| 33 | private $data; |
||
| 34 | |||
| 35 | public function __construct( |
||
| 36 | string $boardUuid, |
||
| 37 | string $shardUuid, |
||
| 38 | string $profileName, |
||
| 39 | string $versionName, |
||
| 40 | string $data |
||
| 41 | ) |
||
| 42 | { |
||
| 43 | $this->boardUuid = new Uuid($boardUuid); |
||
| 44 | $this->shardUuid = new ShardUuid($shardUuid); |
||
| 45 | $this->profile = Profile::createFrom($profileName, $versionName); |
||
| 46 | $this->data = new Data($data); |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getBoardUuid(): Uuid |
||
| 50 | { |
||
| 51 | return $this->boardUuid; |
||
| 52 | } |
||
| 53 | |||
| 54 | public function getShardUuid(): ShardUuid |
||
| 55 | { |
||
| 56 | return $this->shardUuid; |
||
| 57 | } |
||
| 58 | |||
| 59 | public function getProfile(): Profile |
||
| 60 | { |
||
| 61 | return $this->profile; |
||
| 62 | } |
||
| 63 | |||
| 64 | public function getData(): Data |
||
| 67 | } |
||
| 68 | } |
||
| 69 |