HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/debout/debout.nl/vendor/komma/kms/src/Core/AttributeDataServiceInterface.php
<?php declare(strict_types=1);

namespace Komma\KMS\Core;

use Illuminate\Support\Collection;
use Illuminate\Validation\Validator;


/**
 * Class DataService
 *
 * Validates input and fills attributes with data
 *
 * @package App\Kms\Core
 */
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;
}