コード例 #1
0
ファイル: Walker.php プロジェクト: pscheit/psc-cms
 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
     }
 }