<?php

declare(strict_types=1);

namespace Apexl\Io\Validation\Services;

;

use Apexl\Io\Validation\Collections\ValidationRuleCollectionCollection;
use Apexl\Io\Validation\Interfaces\HasValidationRulesInterface;

final readonly class ValidationRuleCollector
{
    public function collect(HasValidationRulesInterface $hasValidationRules): ValidationRuleCollectionCollection
    {
        return $hasValidationRules->getValidationRules(new ValidationRuleCollectionCollection());
    }
}