Parse and validate AT Protocol Lexicons with DTO generation for Laravel
at dev 407 B view raw
1<?php 2 3namespace SocialDept\AtpSchema\Contracts; 4 5interface Transformer 6{ 7 /** 8 * Transform raw data to model. 9 */ 10 public function fromArray(array $data): mixed; 11 12 /** 13 * Transform model to raw data. 14 */ 15 public function toArray(mixed $model): array; 16 17 /** 18 * Check if this transformer supports the given type. 19 */ 20 public function supports(string $type): bool; 21}