original_string: public static function getPublicCertificates() {
      $req = new GetPublicCertificateForAppRequest();
      $resp = new GetPublicCertificateForAppResponse();
  
      try {
        ApiProxy::makeSyncCall(self::PACKAGE_NAME, 'GetPublicCertificatesForApp',
            $req, $resp);
      } catch (ApplicationError $e) {
        throw self::applicationErrorToException($e);
      }
  
      $result = [];
  
      foreach ($resp->getPublicCertificateListList() as $cert) {
        $result[] = new PublicCertificate($cert->getKeyName(),
                                          $cert->getX509CertificatePem());
      }
  
      return $result;
    }
code: public static function getPublicCertificates() {
      $req = new GetPublicCertificateForAppRequest();
      $resp = new GetPublicCertificateForAppResponse();
  
      try {
        ApiProxy::makeSyncCall(self::PACKAGE_NAME, 'GetPublicCertificatesForApp',
            $req, $resp);
      } catch (ApplicationError $e) {
        throw self::applicationErrorToException($e);
      }
  
      $result = [];
  
      foreach ($resp->getPublicCertificateListList() as $cert) {
        $result[] = new PublicCertificate($cert->getKeyName(),
                                          $cert->getX509CertificatePem());
      }
  
      return $result;
    }
code_tokens: public static function getPublicCertificates ( ) { $ req = new GetPublicCertificateForAppRequest ( ) ; $ resp = new GetPublicCertificateForAppResponse ( ) ; try { ApiProxy :: makeSyncCall ( self :: PACKAGE_NAME , 'GetPublicCertificatesForApp' , $ req , $ resp ) ; } catch ( ApplicationError $ e ) { throw self :: applicationErrorToException ( $ e ) ; } $ result = [ ] ; foreach ( $ resp -> getPublicCertificateListList ( ) as $ cert ) { $ result [ ] = new PublicCertificate ( $ cert -> getKeyName ( ) , $ cert -> getX509CertificatePem ( ) ) ; } return $ result ; }
docstring: Get the list of public certifates for the application.
  
  @throws AppIdentityException If there is an error using the AppIdentity
  service.
  
  @return PublicCertificate[] An array of the applications public
  certificates.
docstring_tokens: Get the list of public certifates for the application .