Something went wrong. Try again.
Parse and validate AT Protocol Lexicons with DTO generation for Laravel
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455<?php
namespace SocialDept\AtpSchema\Generated\App\Bsky\Embed\Video;
use SocialDept\AtpSchema\Data\BlobReference;use SocialDept\AtpSchema\Data\Data;
/** * GENERATED CODE - DO NOT EDIT * * Lexicon: app.bsky.embed.video.caption * Type: object * * @property string $lang * @property BlobReference $file * * Constraints: * - Required: lang, file * - lang: Format: language */class Caption extends Data{ public function __construct( public readonly string $lang, public readonly BlobReference $file ) { }
/** * Get the lexicon NSID for this data type. * * @return string */ public static function getLexicon(): string { return 'app.bsky.embed.video.caption'; }
/** * Create an instance from an array. * * @param array $data The data array * @return static */ public static function fromArray(array $data): static { return new static( lang: $data['lang'], file: $data['file'] ); }
}