2026-02-22 10:41:33 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace App\Services\Micropub\Data;
|
|
|
|
|
|
2026-03-13 20:39:50 +00:00
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
2026-02-22 10:41:33 +00:00
|
|
|
abstract class MicropubData
|
|
|
|
|
{
|
2026-03-13 20:39:50 +00:00
|
|
|
abstract public static function fromRequest(Request $request): static;
|
|
|
|
|
|
2026-02-22 10:41:33 +00:00
|
|
|
abstract public static function fromArray(array $data): static;
|
|
|
|
|
|
|
|
|
|
abstract public function toArray(): array;
|
|
|
|
|
}
|