Refactored equals, added documentation

This commit is contained in:
Netkas 2022-12-29 14:17:56 -05:00
parent 172bc4866a
commit 0cbb927066
2 changed files with 36 additions and 2 deletions

View file

@ -66,14 +66,13 @@
* @param Engine $engine
* @return bool
* @throws EvaluationException
* @throws EvaluationException
*/
public function eval(Engine $engine): bool
{
$a = $engine->eval($this->A);
$b = $engine->eval($this->B);
return $a === $b;
return ($a === $b);
}
/**