for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kontrolio\Rules\Core;
use Kontrolio\Rules\AbstractRule;
/**
* Sometimes validation rule.
*
* @package Kontrolio\Rules\Core
*/
class Sometimes extends AbstractRule
{
* Validates input.
* @param mixed $input
* @return bool
public function isValid($input = null)
return true;
}
* When true, validation will be bypassed if validated value is null or an empty string.
public function emptyValueAllowed()