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);
    }
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);
    }
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 ) ; }
Gets a single installed software from this server

@param integer $id
@param array $scopes optional

@return Software
Gets a single installed software from this server