Non-static method error when trying to use class in widgets

Like the error suggests, your are calling the function statically. If you wanna use it that way you gotta change

 function input

to:

static function input