Design Patterns - Observer
Also called Publisher-Subscriber - Create a one-to-many relationship between objects so when one object changes all its dependent are notified.
When implemented, further reference should be checked, as this implementation has many things that should be considered.
Notes References
20210408132546 Computer Science - Design patterns