public function exploits($scopes = []) {
        if (!$this->id) {
            throw new Exception("The software has no ID, can\'t get exploits");
        }

        if (!$this->server_id) {
            throw new Exception("The software has no server ID, can\'t get exploits");
        }

        $exploit = new Exploit($this->patrol);

        $exploit->defaults([
            'software_id' => $this->id,
            'server_id' => $this->server_id
        ]);

        return $exploit->all();
    }
public function exploits($scopes = []) {
        if (!$this->id) {
            throw new Exception("The software has no ID, can\'t get exploits");
        }

        if (!$this->server_id) {
            throw new Exception("The software has no server ID, can\'t get exploits");
        }

        $exploit = new Exploit($this->patrol);

        $exploit->defaults([
            'software_id' => $this->id,
            'server_id' => $this->server_id
        ]);

        return $exploit->all();
    }
public function exploits ( $ scopes = [ ] ) { if ( ! $ this -> id ) { throw new Exception ( "The software has no ID, can\'t get exploits" ) ; } if ( ! $ this -> server_id ) { throw new Exception ( "The software has no server ID, can\'t get exploits" ) ; } $ exploit = new Exploit ( $ this -> patrol ) ; $ exploit -> defaults ( [ 'software_id' => $ this -> id , 'server_id' => $ this -> server_id ] ) ; return $ exploit -> all ( ) ; }
Gets a list of exploits from this software

@param array $scopes optional

@return array List of PatrolSdk\Exploit
Gets a list of exploits from this software