public function setWatcher(Watcher $watcher)
    {
        $this->watcher = $watcher;
        $this->watcher->setUpdateCallback(function () {
            $this->loadPolicy();
        });
    }
public function setWatcher(Watcher $watcher)
    {
        $this->watcher = $watcher;
        $this->watcher->setUpdateCallback(function () {
            $this->loadPolicy();
        });
    }
public function setWatcher ( Watcher $ watcher ) { $ this -> watcher = $ watcher ; $ this -> watcher -> setUpdateCallback ( function ( ) { $ this -> loadPolicy ( ) ; } ) ; }
sets the current watcher.

@param Watcher $watcher
sets the current watcher .