/** * @return array[] */ protected function geometryCollection() { $collection = array($this->geometry()); while ($this->lexer->isNextToken(StringLexer::T_COMMA)) { $this->match(StringLexer::T_COMMA); $collection[] = $this->geometry(); } return $collection; }