Download app/Enums/Contracts/WithIntBackedEnum.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/app/Enums/Contracts/WithIntBackedEnum.php
- Command line
-
hf download hf://pnacorp/magicai/app/Enums/Contracts/WithIntBackedEnum.php
-
curl -L -o WithIntBackedEnum.php https://huggingface.co/pnacorp/magicai/resolve/main/app/Enums/Contracts/WithIntBackedEnum.php
503 Bytes
| declare(strict_types=1); | |
| namespace App\Enums\Contracts; | |
| /** | |
| * @mixin \IntBackedEnum | |
| * | |
| * @property int $value | |
| * @property string $name | |
| */ | |
| interface WithIntBackedEnum | |
| { | |
| public function label(): string; | |
| public static function getLabel(WithIntBackedEnum $enum): string; | |
| /** | |
| * @template T of string|null | |
| * @phpstan-param T $implode | |
| * | |
| * @return (T is null ? array : string) | |
| */ | |
| public static function getLabels(?string $implode = null): array|string; | |
| } | |