original_string: public function saveOrder($serialize)
      {
          $tree = json_decode($serialize, true);
  
          if (JSON_ERROR_NONE !== json_last_error()) {
              throw new \InvalidArgumentException(json_last_error_msg());
          }
  
          $this->model->saveOrder($tree);
  
          return true;
      }
code: public function saveOrder($serialize)
      {
          $tree = json_decode($serialize, true);
  
          if (JSON_ERROR_NONE !== json_last_error()) {
              throw new \InvalidArgumentException(json_last_error_msg());
          }
  
          $this->model->saveOrder($tree);
  
          return true;
      }
code_tokens: public function saveOrder ( $ serialize ) { $ tree = json_decode ( $ serialize , true ) ; if ( JSON_ERROR_NONE !== json_last_error ( ) ) { throw new \ InvalidArgumentException ( json_last_error_msg ( ) ) ; } $ this -> model -> saveOrder ( $ tree ) ; return true ; }
docstring: Save tree order from a input.
  
  @param string $serialize
  
  @return bool
docstring_tokens: Save tree order from a input .