public function getUser() : ?User
    {
        $key = $this->getUserId();

        if (empty($key)) {
           return null;
        }

        return User::Store()->getById($key);
    }
public function getUser() : ?User
    {
        $key = $this->getUserId();

        if (empty($key)) {
           return null;
        }

        return User::Store()->getById($key);
    }
public function getUser ( ) : ? User { $ key = $ this -> getUserId ( ) ; if ( empty ( $ key ) ) { return null ; } return User :: Store ( ) -> getById ( $ key ) ; }
Get the User model for this  by Id.

@uses \Octo\System\Store\UserStore::getById()
@uses User
@return User|null
Get the User model for this by Id .