New to OOP in PHP
One of my functions requires another function to be executed before running. Is there a way I can check this?
Create a third function C that calls A and then B, and use that new function all over the place. In OOP terms, A and B should be protected in your class and C is public, e.g. available for whoever uses your class.