Download src/Voice/Application/CommandHandlers/ReadVoiceCommandHandler.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 563 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Voice/Application/CommandHandlers/ReadVoiceCommandHandler.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Voice/Application/CommandHandlers/ReadVoiceCommandHandler.php
-
curl -L -o ReadVoiceCommandHandler.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Voice/Application/CommandHandlers/ReadVoiceCommandHandler.php
563 Bytes
| declare(strict_types=1); | |
| namespace Voice\Application\CommandHandlers; | |
| use Voice\Application\Commands\ReadVoiceCommand; | |
| use Voice\Domain\Entities\VoiceEntity; | |
| use Voice\Domain\Exceptions\VoiceNotFoundException; | |
| use Voice\Domain\VoiceRepositoyInterface; | |
| class ReadVoiceCommandHandler | |
| { | |
| public function __construct( | |
| private VoiceRepositoyInterface $repo | |
| ) { | |
| } | |
| /** | |
| * @throws VoiceNotFoundException | |
| */ | |
| public function handle(ReadVoiceCommand $cmd): VoiceEntity | |
| { | |
| return $this->repo->ofId($cmd->id); | |
| } | |
| } | |