-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
317 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Kiboko\Component\Satellite\Cloud\Command\Workflow; | ||
|
||
use Kiboko\Component\Satellite\Cloud\Command\Command; | ||
use Kiboko\Component\Satellite\Cloud\DTO\WorkflowId; | ||
|
||
final class RemoveWorkflowCommand implements Command | ||
{ | ||
public function __construct( | ||
public WorkflowId $workflow, | ||
) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Kiboko\Component\Satellite\Cloud\DTO; | ||
|
||
final class ReferencedWorkflow implements WorkflowInterface | ||
{ | ||
public function __construct( | ||
private WorkflowId $id, | ||
private Workflow $decorated, | ||
) {} | ||
|
||
public function id(): WorkflowId | ||
{ | ||
return $this->id; | ||
} | ||
|
||
public function code(): string | ||
{ | ||
return $this->decorated->code(); | ||
} | ||
|
||
public function label(): string | ||
{ | ||
return $this->decorated->label(); | ||
} | ||
|
||
public function jobs(): JobList | ||
{ | ||
return $this->decorated->jobs(); | ||
} | ||
|
||
public function autoload(): Autoload | ||
{ | ||
return $this->decorated->autoload(); | ||
} | ||
|
||
public function packages(): PackageList | ||
{ | ||
return $this->decorated->packages(); | ||
} | ||
|
||
public function repositories(): RepositoryList | ||
{ | ||
return $this->decorated->repositories(); | ||
} | ||
|
||
public function auths(): AuthList | ||
{ | ||
return $this->decorated->auths(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Kiboko\Component\Satellite\Cloud\DTO; | ||
|
||
final readonly class Workflow implements WorkflowInterface | ||
{ | ||
public function __construct( | ||
private string $label, | ||
private string $code, | ||
private JobList $jobs, | ||
private Autoload $autoload, | ||
private PackageList $packages, | ||
private RepositoryList $repositories, | ||
private AuthList $auths, | ||
) {} | ||
|
||
public function code(): string | ||
{ | ||
return $this->code; | ||
} | ||
|
||
public function label(): string | ||
{ | ||
return $this->label; | ||
} | ||
|
||
public function jobs(): JobList | ||
{ | ||
return $this->jobs; | ||
} | ||
|
||
public function autoload(): Autoload | ||
{ | ||
return $this->autoload; | ||
} | ||
|
||
public function packages(): PackageList | ||
{ | ||
return $this->packages; | ||
} | ||
|
||
public function repositories(): RepositoryList | ||
{ | ||
return $this->repositories; | ||
} | ||
|
||
public function auths(): AuthList | ||
{ | ||
return $this->auths; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,4 @@ | |
|
||
interface JobInterface | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Kiboko\Component\Satellite\Cloud\DTO; | ||
|
||
interface WorkflowInterface | ||
{ | ||
public function code(): string; | ||
|
||
public function label(): string; | ||
|
||
public function jobs(): JobList; | ||
|
||
public function autoload(): Autoload; | ||
|
||
public function packages(): PackageList; | ||
|
||
public function repositories(): RepositoryList; | ||
|
||
public function auths(): AuthList; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/Cloud/Handler/Workflow/RemoveWorkflowCommandHandler.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Kiboko\Component\Satellite\Cloud\Handler\Workflow; | ||
|
||
use Kiboko\Component\Satellite\Cloud; | ||
|
||
final class RemoveWorkflowCommandHandler | ||
{ | ||
public function __construct( | ||
\Gyroscops\Api\Client $client, | ||
) { | ||
} | ||
|
||
public function __invoke(Cloud\Command\Workflow\DeclareWorkflowCommand $command) | ||
{ | ||
|
||
} | ||
} |
Oops, something went wrong.