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.
123456789101112131415161718192021222324252627282930313233343536<?php
declare(strict_types=1);
namespace App\Domain\Pds\Atproto\Admin;
use JsonSerializable;
class GetInviteCodesResponse implements JsonSerializable{ /** @var list<InviteCodeView> */ private array $codes;
/** * @param list<InviteCodeView> $codes */ public function __construct(array $codes, private readonly ?string $cursor = null) { $this->codes = $codes; }
/** * @return array<string, mixed> */ #[\ReturnTypeWillChange] public function jsonSerialize(): array { $out = ['codes' => $this->codes]; if ($this->cursor !== null) { $out['cursor'] = $this->cursor; }
return $out; }}