original_string: public function setInstance($instance) {
  		$reflection = new ReflectionClass($instance);
  		$name = str_replace('\\', ':', $reflection->getName());
  		$this->instances[$name] = $instance;
  	}
code: public function setInstance($instance) {
  		$reflection = new ReflectionClass($instance);
  		$name = str_replace('\\', ':', $reflection->getName());
  		$this->instances[$name] = $instance;
  	}
code_tokens: public function setInstance ( $ instance ) { $ reflection = new ReflectionClass ( $ instance ) ; $ name = str_replace ( '\\' , ':' , $ reflection -> getName ( ) ) ; $ this -> instances [ $ name ] = $ instance ; }
docstring: Add new entry in instances.
  
  @param string $key Key of entry
  @param Callable $resolver Callable of entry
  
  @return void
docstring_tokens: Add new entry in instances .