public function __construct($text, $uid = '', $withGallery = false) { $this->text = $text; $this->uid = $uid; $this->withGallery = $withGallery; if ($withGallery) { $this->refId = rand(); } }