for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Validator\Tests\Support\Rule;
use Yiisoft\Validator\Rule\Composite;
use Yiisoft\Validator\Rule\HasLength;
use Yiisoft\Validator\Rule\Required;
use Yiisoft\Validator\Rule\Url;
final class CustomUrlRuleSet extends Composite
{
public function getRules(): iterable
yield new Required();
yield new Url(enableIdn: true);
yield new HasLength(max: 20);
}
public function getName(): string
return 'customUrlRule';