{"id":27,"date":"2020-09-27T09:47:18","date_gmt":"2020-09-27T09:47:18","guid":{"rendered":"https:\/\/system.camp\/index.php\/2020\/09\/27\/the-command-design-pattern\/"},"modified":"2020-10-06T09:56:22","modified_gmt":"2020-10-06T09:56:22","slug":"the-command-design-pattern","status":"publish","type":"post","link":"https:\/\/system.camp\/tutorial\/the-command-design-pattern\/","title":{"rendered":"The Command Design Pattern"},"content":{"rendered":"\n

The command design pattern is a behavioral design pattern. This pattern focuses on encapsulating all the data and related actions of an object. This design pattern allows separating the objects that produce the behavior and the objects that consume them.<\/p>\n\n\n\n

The command design pattern consists of 4 major things:<\/p>\n\n\n\n