I think you’ll need to change some items; I’ve marked them with “CHANGE_THIS”.
class CHANGE_THIS extends WP_Widget
function __construct() {
parent::__construct(
'CHANGE_THIS', // Base ID
__('CHANGE_THIS', 'domainname'), // Name
array( 'description' => __( 'Email, phone, FB link', 'domainname' ), ) // Args
);
}
add_action( 'widgets_init', function(){
register_widget( 'CHANGE_THIS' );
});