File: D:/HostingSpaces/SBogers10/farmfun.komma.pro/app/Komma/Kms/Core/AttributeDataServiceInterface.php
<?php
declare(strict_types=1);
namespace App\Komma\Kms\Core;
use Illuminate\Support\Collection;
use Illuminate\Validation\Validator;
/**
* Class DataService
*
* Validates input and fills attributes with data
*/
interface AttributeDataServiceInterface
{
/**
* Fills all attributes with values from the forms / session
* @param Collection $attributes
* @return Collection
*/
public function fillAttributesFromInput(Collection $attributes);
/**
* Iterates over all sectionTabItem instances and builds a Validator
* from the rules and messages in them.
*
* @param Collection $attributes
* @param array $input The input to validate. The function wil retrieve the input itself if you don't specify this.
* If you specify it must be an associative array containing input names as keys and values as values from
* those inputs.
*
* @return Validator
*/
public function validateInputAndReturnValidator(Collection $attributes, array $input = []): ? Validator;
}