December 2016
Beginner to intermediate
238 pages
6h 10m
English
© Kelt Dockins 2017
Kelt Dockins, Design Patterns in PHP and Laravel, 10.1007/978-1-4842-2451-9_21
Kelt Dockins1
(1)Dolph, Arkansas, USA
$> git checkout mementoWithout violating encapsulation, capture and externalize an object’s internal state so that the object can be restored to this state later.1
Have you ever seen that movie called Memento 2? The story follows an investigator who can no longer make new memories. He follows clues in order to find a second attacker on his murdered wife. It’s not one of Christopher Nolan’s best movies but it is still worth watching. This chapter has nothing to do with that. I’m not even sure how to relate the movie with the memento pattern. I do love a good Nolan film, though.
Read now
Unlock full access