public function __construct($userId = null) { // if a user id is given we will load the user in this object if ($userId !== null) { $this->loadUser($userId); } }