original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Gets a list of exploits from this software
  
  @param array $scopes optional
  
  @return array List of PatrolSdk\Exploit
docstring_tokens: Gets a list of exploits from this software