public function addWatcher(Watcher\WatcherInterface $watcher)
  {
    $type = $watcher->getType();

    $this->watchers[$type] = $watcher;
  }
public function addWatcher(Watcher\WatcherInterface $watcher)
  {
    $type = $watcher->getType();

    $this->watchers[$type] = $watcher;
  }
public function addWatcher ( Watcher \ WatcherInterface $ watcher ) { $ type = $ watcher -> getType ( ) ; $ this -> watchers [ $ type ] = $ watcher ; }
Add named watcher instance

@param Watcher\WatcherInterface $watcher Watcher instance

@return null
Add named watcher instance