Download src/Stat/Application/Commands/ReadStatCommand.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 679 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Stat/Application/Commands/ReadStatCommand.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Stat/Application/Commands/ReadStatCommand.php
-
curl -L -o ReadStatCommand.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Stat/Application/Commands/ReadStatCommand.php
679 Bytes
| declare(strict_types=1); | |
| namespace Stat\Application\Commands; | |
| use DateTime; | |
| use DateTimeInterface; | |
| use Shared\Infrastructure\CommandBus\Attributes\Handler; | |
| use Stat\Application\CommandHandlers\ReadStatCommandHandler; | |
| use Stat\Domain\ValueObjects\StatType; | |
| (ReadStatCommandHandler::class) | |
| class ReadStatCommand | |
| { | |
| public StatType $type; | |
| public ?DateTimeInterface $year = null; | |
| public ?DateTimeInterface $month = null; | |
| public ?DateTimeInterface $day = null; | |
| public function __construct(string|StatType $type) | |
| { | |
| $this->type = $type instanceof StatType ? $type : StatType::from($type); | |
| $this->day = new DateTime(); | |
| } | |
| } | |