Something went wrong. Try again.
Parse and validate AT Protocol Lexicons with DTO generation for Laravel
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162<?php
namespace SocialDept\AtpSchema\Generated\Com\Atproto\Identity\Defs;
use SocialDept\AtpSchema\Data\Data;
/** * GENERATED CODE - DO NOT EDIT * * Lexicon: com.atproto.identity.defs.identityInfo * Type: object * * @property string $did * @property string $handle The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document. * @property mixed $didDoc The complete DID document for the identity. * * Constraints: * - Required: did, handle, didDoc * - did: Format: did * - handle: Format: handle */class IdentityInfo extends Data{ /** * @param string $handle The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document. * @param mixed $didDoc The complete DID document for the identity. */ public function __construct( public readonly string $did, public readonly string $handle, public readonly mixed $didDoc ) { }
/** * Get the lexicon NSID for this data type. * * @return string */ public static function getLexicon(): string { return 'com.atproto.identity.defs.identityInfo'; }
/** * Create an instance from an array. * * @param array $data The data array * @return static */ public static function fromArray(array $data): static { return new static( did: $data['did'], handle: $data['handle'], didDoc: $data['didDoc'] ); }
}