public function get_users() : array {
        $users = [];
        foreach ($this->userids as $userid) {
            if ($user = \core_user::get_user($userid)) {
                $users[] = $user;
            }
        }

        return $users;
    }
public function get_users() : array {
        $users = [];
        foreach ($this->userids as $userid) {
            if ($user = \core_user::get_user($userid)) {
                $users[] = $user;
            }
        }

        return $users;
    }
public function get_users ( ) : array { $ users = [ ] ; foreach ( $ this -> userids as $ userid ) { if ( $ user = \ core_user :: get_user ( $ userid ) ) { $ users [ ] = $ user ; } } return $ users ; }
Get the complete list of user objects that relate to this request.

@return  \stdClass[]
Get the complete list of user objects that relate to this request .