Something went wrong. Try again.
Parse and validate AT Protocol Lexicons with DTO generation for Laravel
Something went wrong. Try again.
1.2 kB · 54 lines
PHP
at dev
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455<?php
namespace SocialDept\AtpSchema\Generated\Tools\Ozone\Moderation\Defs;
use SocialDept\AtpSchema\Data\Data;
/** * GENERATED CODE - DO NOT EDIT * * Account credentials revocation by moderators. Only works on DID subjects. * * Lexicon: tools.ozone.moderation.defs.revokeAccountCredentialsEvent * Type: object * * @property string $comment Comment describing the reason for the revocation. * * Constraints: * - Required: comment */class RevokeAccountCredentialsEvent extends Data{ /** * @param string $comment Comment describing the reason for the revocation. */ public function __construct( public readonly string $comment ) { }
/** * Get the lexicon NSID for this data type. * * @return string */ public static function getLexicon(): string { return 'tools.ozone.moderation.defs.revokeAccountCredentialsEvent'; }
/** * Create an instance from an array. * * @param array $data The data array * @return static */ public static function fromArray(array $data): static { return new static( comment: $data['comment'] ); }
}