code: private function setFlag(string $name, bool $value = true): self {
      $this->flags[$name] = $value;
      return $this;
    }
docs: Sets a value indicating whether this assertion has the specified flag.
  @param string $name The flag name.
  @param bool $value `true` if this assertion has the specified flag, otherwise `false`.
  @return self This instance.