*/ private array $repos; private ?string $cursor; /** * @param list $repos */ public function __construct(array $repos, ?string $cursor = null) { $this->repos = $repos; $this->cursor = $cursor; } /** * @return list */ public function getRepos(): array { return $this->repos; } public function getCursor(): ?string { return $this->cursor; } /** * @return array */ #[\ReturnTypeWillChange] public function jsonSerialize(): array { $out = ['repos' => $this->repos]; if ($this->cursor !== null) { $out['cursor'] = $this->cursor; } return $out; } }