Talk in Polish at PHPers Summit 2019
View Slides: https://www.slideshare.net/ukaszChruciel1/a-short-tale-about-state-machine
Checkout the code: https://github.com/lchrusciel/StateMachine
Short URL: https://joind.in/talk/e7d76 (QR-Code (opens in new window))
Entities lifecycle is usually something more then just create and delete. Models, with which we are working on day to day basis changes their state under some business circumstances. State machine pattern can be a powerful allay when solving this kind of problems. How does it looks like? What are pros and cons of state machine usage? What are the things, that we should be beware of? I will answer these questions during my presentation.