diff --git a/src/ActionManager.php b/src/ActionManager.php index 77a4005..574534d 100755 --- a/src/ActionManager.php +++ b/src/ActionManager.php @@ -70,6 +70,13 @@ public function getDesignPatterns(): array return $this->designPatterns; } + public function registerDesignPattern(DesignPattern $designPattern): ActionManager + { + $this->designPatterns[] = $designPattern; + + return $this; + } + public function getDesignPatternsMatching(array $usedTraits): array { $filter = function (DesignPattern $designPattern) use ($usedTraits) {