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