Use the Strategy to Avoid the Switch-Case Antipattern
In PHP we have tons of bad constructs/functions that don’t actually
help newcomers on writing good code: the SWITCH/CASE statement is one
of those that I hate the most, although very few developers rely on
it.