Download src/Billing/Application/Commands/CountPlansCommand.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 961 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Billing/Application/Commands/CountPlansCommand.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Billing/Application/Commands/CountPlansCommand.php
-
curl -L -o CountPlansCommand.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Billing/Application/Commands/CountPlansCommand.php
961 Bytes
| declare(strict_types=1); | |
| namespace Billing\Application\Commands; | |
| use Billing\Application\CommandHandlers\CountPlansCommandHandler; | |
| use Billing\Domain\ValueObjects\BillingCycle; | |
| use Billing\Domain\ValueObjects\Status; | |
| use Shared\Infrastructure\CommandBus\Attributes\Handler; | |
| (CountPlansCommandHandler::class) | |
| class CountPlansCommand | |
| { | |
| public ?Status $status = null; | |
| public ?BillingCycle $billingCycle = null; | |
| /** Search terms/query */ | |
| public ?string $query = null; | |
| /** | |
| * @param int $status | |
| * @return CountPlansCommand | |
| */ | |
| public function setStatus(int $status): self | |
| { | |
| $this->status = Status::from($status); | |
| return $this; | |
| } | |
| /** | |
| * @param string $billingCycle | |
| * @return CountPlansCommand | |
| */ | |
| public function setBillingCycle(string $billingCycle): self | |
| { | |
| $this->billingCycle = BillingCycle::from($billingCycle); | |
| return $this; | |
| } | |
| } | |