/** * * @param string $fileUrl */ public function setFileUrl($fileUrl) { $this->populatePostEntity(); if ($this->postEntity->post === null) { $this->postEntity = new PostEntity(get_the_ID()); } $this->postEntity->setMetaField(self::FILE_URL, $fileUrl); }