Something went wrong. Try again.
Parse and validate AT Protocol Lexicons with DTO generation for Laravel
Something went wrong. Try again.
407 B · 21 lines
PHP
at dev
12345678910111213141516171819202122<?php
namespace SocialDept\AtpSchema\Contracts;
interface Transformer{ /** * Transform raw data to model. */ public function fromArray(array $data): mixed;
/** * Transform model to raw data. */ public function toArray(mixed $model): array;
/** * Check if this transformer supports the given type. */ public function supports(string $type): bool;}