for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Smoren\Validator\Rules;
use Smoren\Validator\Checks\AnyOfCheck;
use Smoren\Validator\Interfaces\CompositeRuleInterface;
use Smoren\Validator\Interfaces\MixedRuleInterface;
class AnyOfRule extends MixedRule implements CompositeRuleInterface
{
/**
* @param string $name
* @param array<MixedRuleInterface> $rules
*/
public function __construct(string $name, array $rules)
parent::__construct($name);
$this->check(new AnyOfCheck($rules));
}