Something went wrong. Try again.
A barebones implementation of an atproto PDS in PHP and Slim Framework 4.
pds php atproto
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051<?php
declare(strict_types=1);
namespace App\Domain\Pds\Atproto\Sync;
use JsonSerializable;
class ListReposResponse implements JsonSerializable{ /** @var list<RepoView> */ private array $repos;
private ?string $cursor;
/** * @param list<RepoView> $repos */ public function __construct(array $repos, ?string $cursor = null) { $this->repos = $repos; $this->cursor = $cursor; }
/** * @return list<RepoView> */ public function getRepos(): array { return $this->repos; }
public function getCursor(): ?string { return $this->cursor; }
/** * @return array<string, mixed> */ #[\ReturnTypeWillChange] public function jsonSerialize(): array { $out = ['repos' => $this->repos]; if ($this->cursor !== null) { $out['cursor'] = $this->cursor; } return $out; }}