private function setLoggedinUser(
        UserModel $model,
        User $adapter
    ) {
        $wp_user = new WP_User($this->getCurrentUserId());

        $adapter
            ->setModel($model)
            ->setAdaptee($wp_user)
            ->connect();

        $this->setUser($adapter);
    }
private function setLoggedinUser(
        UserModel $model,
        User $adapter
    ) {
        $wp_user = new WP_User($this->getCurrentUserId());

        $adapter
            ->setModel($model)
            ->setAdaptee($wp_user)
            ->connect();

        $this->setUser($adapter);
    }
private function setLoggedinUser ( UserModel $ model , User $ adapter ) { $ wp_user = new WP_User ( $ this -> getCurrentUserId ( ) ) ; $ adapter -> setModel ( $ model ) -> setAdaptee ( $ wp_user ) -> connect ( ) ; $ this -> setUser ( $ adapter ) ; }
Get logged in user object.

@return void
Get logged in user object .