| 1 | <?php declare(strict_types=1); |
||
| 11 | final class CreateStatusCommand |
||
| 12 | { |
||
| 13 | /** @var CommitInterface */ |
||
| 14 | private $commit; |
||
| 15 | |||
| 16 | /** @var string */ |
||
| 17 | private $state; |
||
| 18 | |||
| 19 | /** @var null|string */ |
||
| 20 | private $targetUrl; |
||
| 21 | |||
| 22 | /** @var null|string */ |
||
| 23 | private $description; |
||
| 24 | |||
| 25 | /** @var null|string */ |
||
| 26 | private $context; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param CommitInterface $commit |
||
| 30 | * @param string $state |
||
| 31 | * @param string|null $targetUrl |
||
| 32 | * @param string|null $description |
||
| 33 | * @param string|null $context |
||
| 34 | */ |
||
| 35 | public function __construct(CommitInterface $commit, string $state, ?string $targetUrl = null, ?string $description = null, ?string $context = null) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return CommitInterface |
||
| 46 | */ |
||
| 47 | public function getCommit(): CommitInterface |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getState(): string |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return string|null |
||
| 62 | */ |
||
| 63 | public function getTargetUrl(): ?string |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return string|null |
||
| 70 | */ |
||
| 71 | public function getDescription(): ?string |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @return string|null |
||
| 78 | */ |
||
| 79 | public function getContext(): ?string |
||
| 83 | } |
||
| 84 |