objects; } // This one, though, is complicated public function toComponentValueArray() { $parser = Parser::newFromTokens( $this->objects ); $ret = $parser->parseComponentValueList(); if ( $parser->getParseErrors() ) { $ex = new \UnexpectedValueException( 'TokenList cannot be converted to a ComponentValueList' ); $ex->parseErrors = $parser->getParseErrors(); throw $ex; } return $ret->toComponentValueArray(); } }