What you need to do is to declare those function to become static function.
PHP Code:
public static getByUsername
I am assuming that all of the functions give error are just "public" function.
You can also create an instance of the class and use those function without any warning.