public function setObjectFromId() { if ($this->internalType == "document") { $this->object = Document::getById($this->internal); } elseif ($this->internalType == "asset") { $this->object = Asset::getById($this->internal); } return $this->object; }