wol-soft/php-json-schema-model-generator

View on GitHub
src/Model/Validator.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types = 1);

namespace PHPModelGenerator\Model;

use PHPModelGenerator\Model\Validator\PropertyValidatorInterface;

/**
 * Class Validator
 *
 * @package PHPModelGenerator\Model
 */
class Validator
{
    public function __construct(protected PropertyValidatorInterface $validator, protected int $priority) {}

    public function getValidator(): PropertyValidatorInterface
    {
        return $this->validator;
    }

    public function getPriority(): int
    {
        return $this->priority;
    }
}