src/Entity/QuantumViewEvents.php
<?php
namespace Ups\Entity;
class QuantumViewEvents
{
public $SubscriberID;
public $SubscriptionEvents;
public function __construct($response = null)
{
$this->SubscriptionEvents = [];
if (null !== $response) {
if (isset($response->SubscriberID)) {
$this->SubscriberID = new $response->SubscriberID();
}
}
if (isset($response->SubscriptionEvents)) {
if (is_array($response->SubscriptionEvents)) {
foreach ($response->SubscriptionEvents as $SubscriptionEvents) {
$this->SubscriptionEvents[] = new SubscriptionEvents($SubscriptionEvents);
}
} else {
$this->SubscriptionEvents[] = new SubscriptionEvents($response->SubscriptionEvents);
}
}
}
}