Skip to content

Commit

Permalink
feature/behavioral-patterns-template-method
Browse files Browse the repository at this point in the history
  • Loading branch information
eduance committed Jul 16, 2022
1 parent 2928a8a commit d306688
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Behavioral/Template Method/Solution/DataMiner.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ abstract class DataMiner
protected $analysis;

/**
* This is the template method, which defines the skeleton of the algorithm.
*
* We got two steps: abstract steps which must be implemented by every subclass.
* Optional steps which already have some default implementation, but can still be overridden if needed.
* A hook is also an option: a step with an empty body, hooks are placed before and after crucial steps of algorithms,
Expand Down

0 comments on commit d306688

Please sign in to comment.