src/Leevel/Database/Ddd/SpecificationExpression.php
public function not(): ISpecification
    {
        $old = $this->spec;

        $this->spec = function (IEntity $entity) use ($old): bool {
            return !$old($entity);
        };

        return $this;
    }
public function not(): ISpecification
    {
        $old = $this->spec;

        $this->spec = function (IEntity $entity) use ($old): bool {
            return !$old($entity);
        };

        return $this;
    }
规约 Not 操作.

@param \Leevel\Database\Ddd\ISpecification $spec

@return \Leevel\Database\Ddd\ISpecification