original_string: protected function set_new_path(competency $parent = null) {
          $path = '/0/';
          if ($this->get('parentid')) {
              $parent = $parent !== null ? $parent : $this->get_parent();
              $path = $parent->get('path') . $this->get('parentid') . '/';
          }
          $this->raw_set('path', $path);
      }
code: protected function set_new_path(competency $parent = null) {
          $path = '/0/';
          if ($this->get('parentid')) {
              $parent = $parent !== null ? $parent : $this->get_parent();
              $path = $parent->get('path') . $this->get('parentid') . '/';
          }
          $this->raw_set('path', $path);
      }
code_tokens: protected function set_new_path ( competency $ parent = null ) { $ path = '/0/' ; if ( $ this -> get ( 'parentid' ) ) { $ parent = $ parent !== null ? $ parent : $ this -> get_parent ( ) ; $ path = $ parent -> get ( 'path' ) . $ this -> get ( 'parentid' ) . '/' ; } $ this -> raw_set ( 'path' , $ path ) ; }
docstring: Helper method to set the path.
  
  @param competency $parent The parent competency object.
  @return void
docstring_tokens: Helper method to set the path .