Download src/Presentation/Resources/CountResource.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Presentation/Resources/CountResource.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Presentation/Resources/CountResource.php
-
curl -L -o CountResource.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Presentation/Resources/CountResource.php
328 Bytes
| declare(strict_types=1); | |
| namespace Presentation\Resources; | |
| use JsonSerializable; | |
| class CountResource implements JsonSerializable | |
| { | |
| public function __construct(private int $count) | |
| { | |
| } | |
| public function jsonSerialize(): mixed | |
| { | |
| return [ | |
| 'count' => $this->count, | |
| ]; | |
| } | |
| } | |