Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

401 B
Raw Blame
<?php

namespace HiEvents\DomainObjects\Interfaces;

use Illuminate\Database\Eloquent\Model;

interface DomainObjectInterface
{
    public function toArray(): array;

    public static function hydrate($data): DomainObjectInterface;

    public static function hydrateFromModel(Model $model): DomainObjectInterface;

    public static function hydrateFromArray(array $array): DomainObjectInterface;
}