You cannot use $this in a static method context. It is "self" there.