Example #1
0
 /**
  * {@inheritdoc}
  */
 public function registerPassholderInCardSystem($passholderId, CultureFeed_Uitpas_Passholder_Query_RegisterInCardSystemOptions $query)
 {
     $data = $query->toPostData();
     $result = $this->oauth_client->authenticatedPostAsXml("uitpas/passholder/{$passholderId}/register", $data);
     try {
         $xml = new CultureFeed_SimpleXMLElement($result);
     } catch (Exception $e) {
         throw new CultureFeed_ParseException($result);
     }
     $object = $xml->xpath('/passHolder', false);
     return CultureFeed_Uitpas_Passholder::createFromXml($object);
 }