Skip to content

hasimyerli/chain-of-responsibility-pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chain of responsibility pattern

In this example, chain of responsibility pattern is implemented with php.

composer install

Example
$productRuleService = new \src\Business\RuleService\ProductRuleService();

$product = new \src\Object\ProductObject(5);

$productRuleService->validate($product);

$validation = $productRuleService->getValidation();

echo $validation; 

#Output 
#You can buy this product!

About

example for chain of responsibility pattern

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages