public function setMap($map) { if (!is_array($map)) { throw new InvalidCallException('The map argument must be an array'); } $this->_map = $map; }