Example #1
0
 /**
  * @param $enumId
  * @return mixed
  * @throws OtomotoException
  */
 public function enumValueList($enumId)
 {
     $result = $this->client->EnumValueList(array('enumId' => $enumId));
     try {
         if (!$result->EnumValueListResult->IsOk) {
             throw new OtomotoException($result->EnumValueListResult->Message);
         }
         return $result->EnumValueListResult->Value->WSEnumValue;
     } catch (\Exception $e) {
         throw new OtomotoException($e->getMessage(), $e->getCode());
     }
 }