for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Smoren\Validator\Factories\Checks;
use Smoren\Validator\Factories\CheckBuilder;
use Smoren\Validator\Interfaces\CheckInterface;
use Smoren\Validator\Structs\CheckName;
final class BooleanCheckFactory
{
public static function getBooleanCheck(): CheckInterface
return CheckBuilder::create(CheckName::BOOLEAN)
->withPredicate(fn ($value) => \is_bool($value))
->build();
}