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?
The observer pattern can be used to do what you want (notify observers the event is going to happen so they can do something).