public function setFromEmbed(\Embed\Adapters\Adapter $info) { $this->Title = $info->getTitle(); $this->SourceURL = $info->getUrl(); $this->Width = $info->getWidth(); $this->Height = $info->getHeight(); $this->ThumbURL = $info->getImage(); $this->Description = $info->getDescription() ? $info->getDescription() : $info->getTitle(); $this->Type = $info->getType(); $this->EmbedHTML = $info->getCode(); }