Download src/Billing/Application/Commands/CreateOrderCommand.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 771 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Billing/Application/Commands/CreateOrderCommand.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Billing/Application/Commands/CreateOrderCommand.php
-
curl -L -o CreateOrderCommand.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Billing/Application/Commands/CreateOrderCommand.php
771 Bytes
| declare(strict_types=1); | |
| namespace Billing\Application\Commands; | |
| use Billing\Application\CommandHandlers\CreateOrderCommandHandler; | |
| use Billing\Domain\Entities\PlanEntity; | |
| use Shared\Domain\ValueObjects\Id; | |
| use Shared\Infrastructure\CommandBus\Attributes\Handler; | |
| use Workspace\Domain\Entities\WorkspaceEntity; | |
| (CreateOrderCommandHandler::class) | |
| class CreateOrderCommand | |
| { | |
| public WorkspaceEntity|Id $workspace; | |
| public PlanEntity|Id $plan; | |
| public function __construct( | |
| WorkspaceEntity|Id|string $workspace, | |
| PlanEntity|Id|string $plan | |
| ) { | |
| $this->workspace = is_string($workspace) | |
| ? new Id($workspace) : $workspace; | |
| $this->plan = is_string($plan) | |
| ? new Id($plan) : $plan; | |
| } | |
| } | |