Exemplo n.º 1
0
 public function onHostStatusChange(Host $host)
 {
     $isActive = $host->isActive();
     $hostname = $host->getHostname();
     if ($isActive) {
         $this->active[$hostname] = $this->hosts[$hostname];
     } else {
         unset($this->active[$hostname]);
     }
 }