private function setFlag(string $name, bool $value = true): self {
    $this->flags[$name] = $value;
    return $this;
  }
private function setFlag(string $name, bool $value = true): self {
    $this->flags[$name] = $value;
    return $this;
  }
private function setFlag ( string $ name , bool $ value = true ) : self { $ this -> flags [ $ name ] = $ value ; return $ this ; }
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.
Sets a value indicating whether this assertion has the specified flag .