original_string: public function setInstance(Hierarchy $element)
      {
          $class = get_class($element);
          $this->hierarchy[$class][$element->getID()] = $element;
          return $this;
      }
code: public function setInstance(Hierarchy $element)
      {
          $class = get_class($element);
          $this->hierarchy[$class][$element->getID()] = $element;
          return $this;
      }
code_tokens: public function setInstance ( Hierarchy $ element ) { $ class = get_class ( $ element ) ; $ this -> hierarchy [ $ class ] [ $ element -> getID ( ) ] = $ element ; return $ this ; }
docstring: Set the instance of a specific ID.
  
  @param scalar $id The ID to set the instance for
  @return $this Provides fluent interface
docstring_tokens: Set the instance of a specific ID .