public function removeAt($position)
    {
        if (!is_numeric($position) || $position < 0) {
            throw new \InvalidArgumentException();
        }

        if ($position < count($this->items)) {
            array_splice($this->items, $position, 1);
        }

        $this->isUpdated = true;

        return $this;
    }
public function removeAt($position)
    {
        if (!is_numeric($position) || $position < 0) {
            throw new \InvalidArgumentException();
        }

        if ($position < count($this->items)) {
            array_splice($this->items, $position, 1);
        }

        $this->isUpdated = true;

        return $this;
    }
public function removeAt ( $ position ) { if ( ! is_numeric ( $ position ) || $ position < 0 ) { throw new \ InvalidArgumentException ( ) ; } if ( $ position < count ( $ this -> items ) ) { array_splice ( $ this -> items , $ position , 1 ) ; } $ this -> isUpdated = true ; return $ this ; }
Remove item at specified position

@param int $position

@return Region
Remove item at specified position