Skip to content

Commit

Permalink
Update StrongRef.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kawax committed Nov 19, 2024
1 parent d073165 commit a20b7d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Types/StrongRef.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Revolution\AtProto\Lexicon\Attributes\NSID;
use Revolution\AtProto\Lexicon\Union\Com\Atproto\Repo\AbstractStrongRef;

/**
* A URI with a content-hash fingerprint.
*/
#[NSID('com.atproto.repo.strongRef')]
final class StrongRef extends AbstractStrongRef implements Arrayable
{
Expand All @@ -17,7 +20,9 @@ public function __construct(
}

/**
* @param string $uri at://
* ```
* StrongRef::to(uri: 'at://', cid: '...');
* ```
*/
public static function to(#[Format('at-uri')] string $uri, #[Format('cid')] string $cid): self
{
Expand Down

0 comments on commit a20b7d5

Please sign in to comment.