public function allSoftware($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->all($scopes);
    }
public function allSoftware($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->all($scopes);
    }
public function allSoftware ( $ 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 -> all ( $ scopes ) ; }
Gets all installed software from this server

@param array $scopes optional

@return array List of PatrolSdk\Software
Gets all installed software from this server