Download src/Affiliate/Application/Commands/CountPayoutsCommand.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 719 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Affiliate/Application/Commands/CountPayoutsCommand.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Affiliate/Application/Commands/CountPayoutsCommand.php
-
curl -L -o CountPayoutsCommand.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Affiliate/Application/Commands/CountPayoutsCommand.php
719 Bytes
| declare(strict_types=1); | |
| namespace Affiliate\Application\Commands; | |
| use Affiliate\Application\CommandHandlers\CountPayoutsCommandHandler; | |
| use Affiliate\Domain\ValueObjects\Status; | |
| use Shared\Infrastructure\CommandBus\Attributes\Handler; | |
| use User\Domain\Entities\UserEntity; | |
| (CountPayoutsCommandHandler::class) | |
| class CountPayoutsCommand | |
| { | |
| public ?Status $status = null; | |
| public ?UserEntity $user = null; | |
| public function setStatus(string|Status $status): self | |
| { | |
| $this->status = is_string($status) ? Status::from($status) : $status; | |
| return $this; | |
| } | |
| public function setUser(UserEntity $user): self | |
| { | |
| $this->user = $user; | |
| return $this; | |
| } | |
| } | |