forkbb/app/Core/RulesValidator.php
2020-10-14 20:01:43 +07:00

30 lines
564 B
PHP

<?php
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');
}
}