original_string: private function _set_session($attr){
      if ( $this->session->has(self::$sn) ){
        $args = \func_get_args();
        if ( (\count($args) === 2) && \is_string($args[0]) ){
          $attr = [$args[0] => $args[1]];
        }
        foreach ( $attr as $key => $val ){
          if ( \is_string($key) ){
            $this->session->set($val, self::$sn, $key);
          }
        }
      }
      return $this;
    }
code: private function _set_session($attr){
      if ( $this->session->has(self::$sn) ){
        $args = \func_get_args();
        if ( (\count($args) === 2) && \is_string($args[0]) ){
          $attr = [$args[0] => $args[1]];
        }
        foreach ( $attr as $key => $val ){
          if ( \is_string($key) ){
            $this->session->set($val, self::$sn, $key);
          }
        }
      }
      return $this;
    }
code_tokens: private function _set_session ( $ attr ) { if ( $ this -> session -> has ( self :: $ sn ) ) { $ args = \ func_get_args ( ) ; if ( ( \ count ( $ args ) === 2 ) && \ is_string ( $ args [ 0 ] ) ) { $ attr = [ $ args [ 0 ] => $ args [ 1 ] ] ; } foreach ( $ attr as $ key => $ val ) { if ( \ is_string ( $ key ) ) { $ this -> session -> set ( $ val , self :: $ sn , $ key ) ; } } } return $ this ; }
docstring: Sets the "session" part of the session
  @param mixed $attr
  @return $this $this
docstring_tokens: Sets the session part of the session