Пример #1
0
 public function walkArrayValue($phpValue, Type $type)
 {
     $isList = $type->isList() !== NULL ? $type->isList() : \Webforge\Common\ArrayUtil::isNumeric($phpValue);
     if ($isList) {
         return $this->walkListValue((array) $phpValue, $type);
     } else {
         return $this->walkHashMapValue((object) $phpValue, $type);
         // alternativ: doch lValue übergeben und lValue->castToHashMap() oder sowas haben
     }
 }