The error is right there.
The “methodName” method name is not allowed. Update it in your PHP class and template to be “getString” rather than “methodName” and it should work.
As a general rule, the method name should indicate that it is a read only function like getX, hasX, canX, readX etc.