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.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152<?php
declare(strict_types=1);
namespace App\Domain\Record;
use JsonSerializable;
/** * A reverse-reference from a record field path to the AT URI it points at. * Maps to the `backlink` table in the actor-store schema. * * Lives inside an ActorStore scoped to a specific DID, so no `did` field here. */class Backlink implements JsonSerializable{ public function __construct( private readonly string $uri, private readonly string $path, private readonly string $linkTo, ) { }
public function getUri(): string { return $this->uri; }
public function getPath(): string { return $this->path; }
public function getLinkTo(): string { return $this->linkTo; }
/** * @return array<string, mixed> */ #[\ReturnTypeWillChange] public function jsonSerialize(): array { return [ 'uri' => $this->uri, 'path' => $this->path, 'linkTo' => $this->linkTo, ]; }}