private function getAccountsHtml(&$accounts) {
    $html = '<h3>Accounts Collection</h3>' .
            $this->getCollectionInfoHtml($accounts);

    $items = $accounts->getItems();

    if (count($items) == 0) {
      $html .= '<p>No Accounts Found</p>';

    } else {
      foreach($items as &$account) {
        $html .= <<<HTML
<hr>
<pre>
Account ID   = {$account->getId()}
Kind         = {$account->getKind()}
Self Link    = {$account->getSelfLink()}
Account Name = {$account->getName()}
Created      = {$account->getCreated()}
Updated      = {$account->getUpdated()}
</pre>
HTML;
      }
    }
    return $html;
  }
private function getAccountsHtml(&$accounts) {
    $html = '<h3>Accounts Collection</h3>' .
            $this->getCollectionInfoHtml($accounts);

    $items = $accounts->getItems();

    if (count($items) == 0) {
      $html .= '<p>No Accounts Found</p>';

    } else {
      foreach($items as &$account) {
        $html .= <<<HTML
<hr>
<pre>
Account ID   = {$account->getId()}
Kind         = {$account->getKind()}
Self Link    = {$account->getSelfLink()}
Account Name = {$account->getName()}
Created      = {$account->getCreated()}
Updated      = {$account->getUpdated()}
</pre>
HTML;
      }
    }
    return $html;
  }
private function getAccountsHtml ( & $ accounts ) { $ html = '<h3>Accounts Collection</h3>' . $ this -> getCollectionInfoHtml ( $ accounts ) ; $ items = $ accounts -> getItems ( ) ; if ( count ( $ items ) == 0 ) { $ html .= '<p>No Accounts Found</p>' ; } else { foreach ( $ items as & $ account ) { $ html .=  <<<HTML
<hr>
<pre>
Account ID   = {$account->getId()}
Kind         = {$account->getKind()}
Self Link    = {$account->getSelfLink()}
Account Name = {$account->getName()}
Created      = {$account->getCreated()}
Updated      = {$account->getUpdated()}
</pre>
HTML ; } } return $ html ; }
Returns important information from the accounts collection.
@param Accounts $accounts The result from the API.
@return string An HTML representation.
Returns important information from the accounts collection .