original_string: public function add(Task $task) : void
      {
          $this->index++;
          Util::put($this -> storage().$this->index.'.queue', serialize($task));
          $this -> updateIterator();
          Util::put($this -> storage().'_index', $this -> index);
      }
code: public function add(Task $task) : void
      {
          $this->index++;
          Util::put($this -> storage().$this->index.'.queue', serialize($task));
          $this -> updateIterator();
          Util::put($this -> storage().'_index', $this -> index);
      }
code_tokens: public function add ( Task $ task ) : void { $ this -> index ++ ; Util :: put ( $ this -> storage ( ) . $ this -> index . '.queue' , serialize ( $ task ) ) ; $ this -> updateIterator ( ) ; Util :: put ( $ this -> storage ( ) . '_index' , $ this -> index ) ; }
docstring: Add new task to queue top
  @param Task $task
docstring_tokens: Add new task to queue top