| @@ 10-48 (lines=39) @@ | ||
| 7 | /** |
|
| 8 | * @Handler("ApiClients\Client\AppVeyor\CommandBus\Handler\Project\HistoryHandler") |
|
| 9 | */ |
|
| 10 | final class HistoryCommand |
|
| 11 | { |
|
| 12 | /** |
|
| 13 | * @var string |
|
| 14 | */ |
|
| 15 | private $accountName; |
|
| 16 | ||
| 17 | /** |
|
| 18 | * @var string |
|
| 19 | */ |
|
| 20 | private $projectSlug; |
|
| 21 | ||
| 22 | /** |
|
| 23 | * LatestBuildCommand constructor. |
|
| 24 | * @param string $accountName |
|
| 25 | * @param string $projectSlug |
|
| 26 | */ |
|
| 27 | public function __construct($accountName, $projectSlug) |
|
| 28 | { |
|
| 29 | $this->accountName = $accountName; |
|
| 30 | $this->projectSlug = $projectSlug; |
|
| 31 | } |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @return string |
|
| 35 | */ |
|
| 36 | public function getAccountName(): string |
|
| 37 | { |
|
| 38 | return $this->accountName; |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * @return string |
|
| 43 | */ |
|
| 44 | public function getProjectSlug(): string |
|
| 45 | { |
|
| 46 | return $this->projectSlug; |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||
| @@ 10-48 (lines=39) @@ | ||
| 7 | /** |
|
| 8 | * @Handler("ApiClients\Client\AppVeyor\CommandBus\Handler\Project\LatestBuildHandler") |
|
| 9 | */ |
|
| 10 | final class LatestBuildCommand |
|
| 11 | { |
|
| 12 | /** |
|
| 13 | * @var string |
|
| 14 | */ |
|
| 15 | private $accountName; |
|
| 16 | ||
| 17 | /** |
|
| 18 | * @var string |
|
| 19 | */ |
|
| 20 | private $projectSlug; |
|
| 21 | ||
| 22 | /** |
|
| 23 | * LatestBuildCommand constructor. |
|
| 24 | * @param string $accountName |
|
| 25 | * @param string $projectSlug |
|
| 26 | */ |
|
| 27 | public function __construct($accountName, $projectSlug) |
|
| 28 | { |
|
| 29 | $this->accountName = $accountName; |
|
| 30 | $this->projectSlug = $projectSlug; |
|
| 31 | } |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @return string |
|
| 35 | */ |
|
| 36 | public function getAccountName(): string |
|
| 37 | { |
|
| 38 | return $this->accountName; |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * @return string |
|
| 43 | */ |
|
| 44 | public function getProjectSlug(): string |
|
| 45 | { |
|
| 46 | return $this->projectSlug; |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||