Download src/Option/Application/Commands/CreateOptionCommand.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 553 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Option/Application/Commands/CreateOptionCommand.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Option/Application/Commands/CreateOptionCommand.php
-
curl -L -o CreateOptionCommand.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Option/Application/Commands/CreateOptionCommand.php
553 Bytes
| declare(strict_types=1); | |
| namespace Option\Application\Commands; | |
| use Option\Application\CommandHandlers\CreateOptionCommandHandler; | |
| use Option\Domain\ValueObjects\Key; | |
| use Option\Domain\ValueObjects\Value; | |
| use Shared\Infrastructure\CommandBus\Attributes\Handler; | |
| (CreateOptionCommandHandler::class) | |
| class CreateOptionCommand | |
| { | |
| public Key $key; | |
| public Value $value; | |
| public function __construct(string $key, ?string $value = null) | |
| { | |
| $this->key = new Key($key); | |
| $this->value = new Value($value); | |
| } | |
| } | |