offset = (int)$offset; } /** * @param int $position * @return int */ public function map($position) { return parent::map($position) + $this->offset; } /** * @param int $position * @return int */ public function unmap($position) { return parent::unmap($position) - $this->offset; } }