for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace kalanis\kw_rules\Rules;
use kalanis\kw_rules\Interfaces\IValidate;
use kalanis\kw_rules\Exceptions\RuleException;
/**
* Class LesserThan
* @package kalanis\kw_rules\Rules
* Check if input is lower than expected value
*/
class LesserThan extends ARule
{
use TCheckInt;
public function validate(IValidate $entry): void
if (floatval($entry->getValue()) >= $this->againstValue) {
throw new RuleException($this->errorText);
}