Esempio n. 1
0
 /**
  * Gets a single installed software from this server
  *
  * @param integer $id
  * @param array $scopes optional
  *
  * @return Software
  */
 public function software($id, $scopes = [])
 {
     if (!$this->id) {
         throw new Exception("The server has no ID, can\\'t get software");
     }
     $software = new Software($this->patrol);
     $software->defaults(['server_id' => $this->id]);
     return $software->find($id, $scopes);
 }