public function getProfile() { if ($this->profile instanceof \Closure) { $this->profile = $this->profile->__invoke(); } return $this->profile; }