public function getElements() { foreach ($this->elements as $name => $element) { $this->resolveXRef($name); } return $this->elements; }