Php Declare Function Inside A Struct