original_string: public function addWatcher(Watcher\WatcherInterface $watcher)
    {
      $type = $watcher->getType();
  
      $this->watchers[$type] = $watcher;
    }
code: public function addWatcher(Watcher\WatcherInterface $watcher)
    {
      $type = $watcher->getType();
  
      $this->watchers[$type] = $watcher;
    }
code_tokens: public function addWatcher ( Watcher \ WatcherInterface $ watcher ) { $ type = $ watcher -> getType ( ) ; $ this -> watchers [ $ type ] = $ watcher ; }
docstring: Add named watcher instance
  
  @param Watcher\WatcherInterface $watcher Watcher instance
  
  @return null
docstring_tokens: Add named watcher instance