original_string: public function getCandidateIds(): array
      {
          $candidateIds = [];
  
          foreach ($this->candidates as $candidate) {
              $candidateIds[] = $candidate->getId();
          }
  
          return $candidateIds;
      }
code: public function getCandidateIds(): array
      {
          $candidateIds = [];
  
          foreach ($this->candidates as $candidate) {
              $candidateIds[] = $candidate->getId();
          }
  
          return $candidateIds;
      }
code_tokens: public function getCandidateIds ( ) : array { $ candidateIds = [ ] ; foreach ( $ this -> candidates as $ candidate ) { $ candidateIds [ ] = $ candidate -> getId ( ) ; } return $ candidateIds ; }
docstring: Get an array of candidate ids.
  
  @return int[]
docstring_tokens: Get an array of candidate ids .