for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hiapi\query\attributes;
abstract class AbstractAttribute implements AttributeInterface
{
abstract protected function getOperatorRules();
public function getRuleForOperator($operator)
$rules = $this->getOperatorRules();
if (isset($rules[$operator])) {
return $rules[$operator];
}
throw UnsupportedOperatorException::forOperator($operator);