public function setType() { if ($this->user !== null && $this->user->osu_subscriber) { $this->type = 'supporter'; } else { $this->type = 'user'; } }