public function shrink(GeneratedValue $element) { if (!$this->contains($element)) { throw new DomainException($element . ' does not belong to the domain of the Booleans'); } return false; }