Download src/Billing/Domain/Exceptions/NotSubscriptionPlanException.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 706 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Billing/Domain/Exceptions/NotSubscriptionPlanException.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Billing/Domain/Exceptions/NotSubscriptionPlanException.php
-
curl -L -o NotSubscriptionPlanException.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Billing/Domain/Exceptions/NotSubscriptionPlanException.php
706 Bytes
| declare(strict_types=1); | |
| namespace Billing\Domain\Exceptions; | |
| use Billing\Domain\Entities\PlanSnapshotEntity; | |
| use Exception; | |
| use Shared\Domain\ValueObjects\Id; | |
| use Throwable; | |
| class NotSubscriptionPlanException extends Exception | |
| { | |
| public function __construct( | |
| public readonly Id|PlanSnapshotEntity $plan, | |
| int $code = 0, | |
| ?Throwable $previous = null, | |
| ) { | |
| parent::__construct( | |
| sprintf( | |
| "Plan with id <%s> is not a subscription plan.", | |
| $plan instanceof PlanSnapshotEntity | |
| ? $plan->getId()->getValue() : $plan->getValue() | |
| ), | |
| $code, | |
| $previous | |
| ); | |
| } | |
| } | |