| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class Command implements ConsumerCommand |
||
| 22 | { |
||
| 23 | public const NAME = 'domain.create_board'; |
||
| 24 | |||
| 25 | /** @var Key */ |
||
| 26 | private $key; |
||
| 27 | |||
| 28 | /** @var Profile */ |
||
| 29 | private $profile; |
||
| 30 | |||
| 31 | public function __construct(array $key, string $profileName, string $versionNumber) |
||
| 32 | { |
||
| 33 | $this->key = new Key($key); |
||
| 34 | $this->profile = Profile::createFromParts($profileName, $versionNumber); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getKey(): Key |
||
| 38 | { |
||
| 39 | return $this->key; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getProfile(): Profile |
||
| 43 | { |
||
| 44 | return $this->profile; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getName(): Name |
||
| 50 | } |
||
| 51 | |||
| 52 | public function getPayload(): array |
||
| 57 | ]; |
||
| 58 | } |
||
| 60 |