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.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546<?php
declare(strict_types=1);
namespace App\Domain\Pds\Atproto\Admin;
use JsonSerializable;
class InviteCodeView implements JsonSerializable{ /** @var list<InviteCodeUseView> */ private array $uses;
/** * @param list<InviteCodeUseView> $uses */ public function __construct( private readonly string $code, private readonly int $available, private readonly bool $disabled, private readonly string $forAccount, private readonly string $createdBy, private readonly string $createdAt, array $uses, ) { $this->uses = $uses; }
/** * @return array<string, mixed> */ #[\ReturnTypeWillChange] public function jsonSerialize(): array { return [ 'code' => $this->code, 'available' => $this->available, 'disabled' => $this->disabled, 'forAccount' => $this->forAccount, 'createdBy' => $this->createdBy, 'createdAt' => $this->createdAt, 'uses' => $this->uses, ]; }}