for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace BenTools\Where\Expression;
final class NegatedExpression extends Expression
{
/**
* NegatedExpression constructor.
* @param Expression $expression
*/
protected function __construct(Expression $expression)
$this->expression = $expression;
}
* @inheritDoc
public function __toString(): string
return sprintf('NOT %s', $this->expression);
public function getValues(): array
return $this->expression->getValues();