Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930<?php
declare(strict_types=1);
namespace Wotnak\Atproto\Identifier;
/** * Value object for an AT Protocol record key. * * @api */final readonly class RecordKey {
public function __construct( public string $value, ) { if (!RecordKeyParser::isValid($value)) { throw new \InvalidArgumentException(\sprintf('Invalid record key "%s".', $value)); } }
/** * Returns the canonical string representation. */ public function __toString(): string { return $this->value; }
}