<?php

namespace Velis\Dto\RelationTransformer;

use Velis\Model\DataObject;

/**
 * Default interface for the Relation Transformers.
 * It's used to identify the `Relation` Attributes.
 * @author Szymon Janaczek <szymon.janaczek@velistech.com>
 * @template TTargetClass
 */
interface RelationTransformer
{
    /**
     * @return TTargetClass[]|TTargetClass|null
     */
    public function map(DataObject $model);
}
