Maintain local ⭤ remote in sync with automatic AT Protocol parity for Laravel (alpha & unstable)
at dev 631 B view raw
1<?php 2 3namespace SocialDept\AtpParity\Data; 4 5use SocialDept\AtpClient\Contracts\Recordable; 6use SocialDept\AtpSchema\Data\Data; 7 8/** 9 * Base class for custom AT Protocol records. 10 * 11 * Extends atp-schema's Data for full compatibility with the ecosystem, 12 * including union type support, validation, equality, and hashing. 13 * 14 * Implements Recordable for seamless atp-client integration. 15 */ 16abstract class Record extends Data implements Recordable 17{ 18 /** 19 * Get the record type (alias for getLexicon for Recordable interface). 20 */ 21 public function getType(): string 22 { 23 return static::getLexicon(); 24 } 25}