original_string: public function setFlash($value, $index = null)
      {
          if ( ! $this->isOpened()) {
              $this->start();
          }
          if (!empty($index)) {
              $this->flashes[$index] = $value;
          } else {
              $this->flashes[] = $value;
          }
          return $this;
      }
code: public function setFlash($value, $index = null)
      {
          if ( ! $this->isOpened()) {
              $this->start();
          }
          if (!empty($index)) {
              $this->flashes[$index] = $value;
          } else {
              $this->flashes[] = $value;
          }
          return $this;
      }
code_tokens: public function setFlash ( $ value , $ index = null ) { if ( ! $ this -> isOpened ( ) ) { $ this -> start ( ) ; } if ( ! empty ( $ index ) ) { $ this -> flashes [ $ index ] = $ value ; } else { $ this -> flashes [ ] = $ value ; } return $ this ; }
docstring: Set a current session flash parameter
  
  @param mixed $value
  @param string $index
  @return self
docstring_tokens: Set a current session flash parameter