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.
123456789101112131415161718192021222324252627282930313233343536373839<?php
declare(strict_types=1);
namespace App\Domain\Pds\Atproto\Sync;
use JsonSerializable;
class GetLatestCommitResponse implements JsonSerializable{ public function __construct( private readonly string $cid, private readonly string $rev, ) { }
public function getCid(): string { return $this->cid; }
public function getRev(): string { return $this->rev; }
/** * @return array{cid: string, rev: string} */ #[\ReturnTypeWillChange] public function jsonSerialize(): array { return [ 'cid' => $this->cid, 'rev' => $this->rev, ]; }}