for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace kalanis\kw_table\core\Table\Rules;
use kalanis\kw_table\core\Interfaces\Table\IRule;
/**
* Class Negate
* @package kalanis\kw_table\core\Table\Rules
* This rule negate contained one
*/
class Negate implements IRule
{
protected IRule $rule;
public function __construct(IRule $rule)
$this->rule = $rule;
}
public function validate($value): bool
return !$this->rule->validate($value);