<?php

namespace Modules\Stock\Interface;

interface FormServiceInterface
{
    /**
     * @param array<string,mixed> $post
     * @param array<string,mixed> $data
     * @return array<string,mixed>
     */
    public function initEntity(array $post, array $data = []): array;

    /**
     * @param array<string,mixed> $entity
     * @param array<string,mixed> $post
     * @return void
     */
    public function flushData(array $entity, array $post = []): void;
}
