forkbb/app/Core/RulesValidator.php
2020-12-21 17:40:19 +07:00

36 lines
753 B
PHP

<?php
/**
* This file is part of the ForkBB <https://github.com/forkbb>.
*
* @copyright (c) Visman <mio.visman@yandex.ru, https://github.com/MioVisman>
* @license The MIT License (MIT)
*/
declare(strict_types=1);
namespace ForkBB\Core;
use ForkBB\Core\Container;
use RuntimeException;
abstract class RulesValidator
{
/**
* Контейнер
* @var Container
*/
protected $c;
public function __construct(Container $container)
{
$this->c = $container;
}
/**
* Выбрасывает исключение при отсутствии метода
*/
public function __call(string $name, array $args)
{
throw new RuntimeException($name . ' validator not found');
}
}