diff --git a/src/Support/DNS.php b/src/Support/DNS.php index 873293e..ea673b3 100644 --- a/src/Support/DNS.php +++ b/src/Support/DNS.php @@ -8,6 +8,9 @@ final class DNS { protected static ?string $fake = null; + /** + * @return array> + */ public static function record(string $hostname, int $type = DNS_TXT): array { if (! is_null(self::$fake)) { diff --git a/src/Support/DidDocument.php b/src/Support/DidDocument.php index 087b4a4..29fce22 100644 --- a/src/Support/DidDocument.php +++ b/src/Support/DidDocument.php @@ -16,6 +16,9 @@ { protected Collection $didDoc; + /** + * @param null|array|Collection $didDoc + */ public function __construct(array|Collection|null $didDoc = null) { $this->didDoc = Collection::wrap($didDoc) @@ -28,6 +31,9 @@ public function __construct(array|Collection|null $didDoc = null) ]); } + /** + * @param null|array|Collection $didDoc + */ public static function make(array|Collection|null $didDoc = null): self { return new self($didDoc); diff --git a/src/Support/ProtectedResource.php b/src/Support/ProtectedResource.php index c9b48c1..c6bb346 100644 --- a/src/Support/ProtectedResource.php +++ b/src/Support/ProtectedResource.php @@ -14,6 +14,9 @@ { protected Collection $meta; + /** + * @param null|array|Collection $meta + */ public function __construct(array|Collection|null $meta = null) { $this->meta = Collection::wrap($meta) @@ -26,6 +29,9 @@ public function __construct(array|Collection|null $meta = null) ]); } + /** + * @param null|array|Collection $meta + */ public static function make(array|Collection|null $meta = null): self { return new self($meta); diff --git a/src/Types/SelfLabels.php b/src/Types/SelfLabels.php index beab2ea..9f772cc 100644 --- a/src/Types/SelfLabels.php +++ b/src/Types/SelfLabels.php @@ -11,15 +11,17 @@ #[NSID('com.atproto.label.defs#selfLabels')] final class SelfLabels extends AbstractUnion implements Arrayable { - protected array $labels; - - public function __construct(array $labels) + /** + * @param array $labels + */ + public function __construct(protected array $labels) { $this->type = 'com.atproto.label.defs#selfLabels'; - - $this->labels = $labels; } + /** + * @param array $labels + */ public static function make(array $labels): self { return new self($labels);