Example #1
0
 /**
  * @return mixed
  * @throws OtomotoException
  */
 public function enumList()
 {
     $result = $this->client->EnumList();
     try {
         if (!$result->EnumListResult->IsOk) {
             throw new OtomotoException($result->EnumListResult->Message);
         }
         return $result->EnumListResult->Enum->WSEnum;
     } catch (\Exception $e) {
         throw new OtomotoException($e->getMessage(), $e->getCode());
     }
 }