original_string: private function getSegmentsHtml(&$segments) {
      $html = '<h3>Segments Collection</h3>' .
              $this->getCollectionInfoHtml($segments);
  
      $items = $segments->getItems();
  
      if (count($items) == 0) {
        $html .= '<p>No Segments Found</p>';
      } else {
        foreach ($items as &$segment) {
          $html .= <<<HTML
  <hr>
  <pre>
  Segment ID = {$segment->getId()}
  Kind       = {$segment->getKind()}
  Self Link  = {$segment->getSelfLink()}
  Name       = {$segment->getName()}
  Definition = {$segment->getDefinition()}
  Created    = {$segment->getCreated()}
  Updated    = {$segment->getUpdated()}
  </pre>
  HTML;
        }
      }
      return $html;
    }
code: private function getSegmentsHtml(&$segments) {
      $html = '<h3>Segments Collection</h3>' .
              $this->getCollectionInfoHtml($segments);
  
      $items = $segments->getItems();
  
      if (count($items) == 0) {
        $html .= '<p>No Segments Found</p>';
      } else {
        foreach ($items as &$segment) {
          $html .= <<<HTML
  <hr>
  <pre>
  Segment ID = {$segment->getId()}
  Kind       = {$segment->getKind()}
  Self Link  = {$segment->getSelfLink()}
  Name       = {$segment->getName()}
  Definition = {$segment->getDefinition()}
  Created    = {$segment->getCreated()}
  Updated    = {$segment->getUpdated()}
  </pre>
  HTML;
        }
      }
      return $html;
    }
code_tokens: private function getSegmentsHtml ( & $ segments ) { $ html = '<h3>Segments Collection</h3>' . $ this -> getCollectionInfoHtml ( $ segments ) ; $ items = $ segments -> getItems ( ) ; if ( count ( $ items ) == 0 ) { $ html .= '<p>No Segments Found</p>' ; } else { foreach ( $ items as & $ segment ) { $ html .=  <<<HTML
  <hr>
  <pre>
  Segment ID = {$segment->getId()}
  Kind       = {$segment->getKind()}
  Self Link  = {$segment->getSelfLink()}
  Name       = {$segment->getName()}
  Definition = {$segment->getDefinition()}
  Created    = {$segment->getCreated()}
  Updated    = {$segment->getUpdated()}
  </pre>
  HTML ; } } return $ html ; }
docstring: Returns important information from the segments collection.
  @param Google_Segments $segments The result from the API.
  @return string An HTML representation.
docstring_tokens: Returns important information from the segments collection .