Beispiel #1
0
 public function __construct($config = null)
 {
     $this->context = new Context();
     if ($config) {
         if (is_object($config) && get_class($config) == 'stdClass') {
             $config = get_object_vars($config);
         }
         $this->config = new ArrayConfig();
         if (isset($config['accountId'])) {
             $this->config->setAccountId($config['accountId']);
             unset($config['accountId']);
         }
         $this->initPropertiesFromArray($config);
     }
 }