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