src/Peach/Util/HashMap.php
private function initTable(&$map)
    {
        if ($map instanceof Map) {
            $entryList = $map->entryList();
            foreach ($entryList as $entry) {
                $this->put($entry->getKey(), $entry->getValue());
            }
            return;
        }
        if (is_array($map)) {
            foreach ($map as $key => $value) {
                $this->put($key, $value);
            }
            return;
        }
        
        throw new \InvalidArgumentException("Argument (" . Values::getType($map) . ") must be array or \\Peach\\Util\\Map");
    }
private function initTable(&$map)
    {
        if ($map instanceof Map) {
            $entryList = $map->entryList();
            foreach ($entryList as $entry) {
                $this->put($entry->getKey(), $entry->getValue());
            }
            return;
        }
        if (is_array($map)) {
            foreach ($map as $key => $value) {
                $this->put($key, $value);
            }
            return;
        }
        
        throw new \InvalidArgumentException("Argument (" . Values::getType($map) . ") must be array or \\Peach\\Util\\Map");
    }
コンストラクタの第一引数が指定された場合に実行される,
マッピングの初期化処理です.

@param Map|array $map