Skip to content
Advertisement

Tag: strategy-pattern

I’m having a little trouble implementing the Strategy pattern

I confess that I’m having a bit of difficulty implementing the strategy pattern in a program that aims to display a different message daily (Ex. Message of the day…), but on special dates there may be some variations (Ex. Merry Christmas : Message from day…), could someone give me an example of how I “could” make this implementation in php?

Advertisement