original_string: function getCancelledTargets($maxResults) {
  		$projects = $this->getProjects ();
  		$tickets = array ();
  		$i = 0;
  		foreach ( $projects as $project ) {
  			$tickets [$i ++] = $project->ticket;
  		}
  		$getCanceledTargetsByProjectsRequest = new getCanceledTargetsByProjects ();
  		$getCanceledTargetsByProjectsRequest->projectTickets = $tickets;
  		$getCanceledTargetsByProjectsRequest->maxResults = $maxResults;
  		
  		$cancelledTargets = $this->targetService->getCanceledTargetsByProjects ( $getCanceledTargetsByProjectsRequest )->return;
  		
  		return $this->_convertTargetsToInternal ( $cancelledTargets );
  	}
code: function getCancelledTargets($maxResults) {
  		$projects = $this->getProjects ();
  		$tickets = array ();
  		$i = 0;
  		foreach ( $projects as $project ) {
  			$tickets [$i ++] = $project->ticket;
  		}
  		$getCanceledTargetsByProjectsRequest = new getCanceledTargetsByProjects ();
  		$getCanceledTargetsByProjectsRequest->projectTickets = $tickets;
  		$getCanceledTargetsByProjectsRequest->maxResults = $maxResults;
  		
  		$cancelledTargets = $this->targetService->getCanceledTargetsByProjects ( $getCanceledTargetsByProjectsRequest )->return;
  		
  		return $this->_convertTargetsToInternal ( $cancelledTargets );
  	}
code_tokens: function getCancelledTargets ( $ maxResults ) { $ projects = $ this -> getProjects ( ) ; $ tickets = array ( ) ; $ i = 0 ; foreach ( $ projects as $ project ) { $ tickets [ $ i ++ ] = $ project -> ticket ; } $ getCanceledTargetsByProjectsRequest = new getCanceledTargetsByProjects ( ) ; $ getCanceledTargetsByProjectsRequest -> projectTickets = $ tickets ; $ getCanceledTargetsByProjectsRequest -> maxResults = $ maxResults ; $ cancelledTargets = $ this -> targetService -> getCanceledTargetsByProjects ( $ getCanceledTargetsByProjectsRequest ) -> return ; return $ this -> _convertTargetsToInternal ( $ cancelledTargets ) ; }
docstring: Get cancelled targets for all projects
  
  @param
  $maxResults
  Maximum number of cancelled targets to return. This
  configuration is to avoid time-outs in case the number of
  targets is very large.
  @return Array of cancelled PDTarget
docstring_tokens: Get cancelled targets for all projects