From 4c5f2ca113a485abb35f4857dc56ba8c01f66dc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Huet?= Date: Sat, 25 Apr 2015 20:31:32 +0200 Subject: [PATCH] Adding RulerZ as a sample RulerZ is a PHP implementation of the Specification pattern which puts the emphasis on three main aspects: - an easy and data-agnostic DSL to define business rules and specifications, - the ability to check if a candidate satisfies a specification, - the ability to filter or query any datasource to only retrieve candidates matching a specification. --- Behavioral/Specification/README.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Behavioral/Specification/README.rst b/Behavioral/Specification/README.rst index 8e3106b..ad9512c 100644 --- a/Behavioral/Specification/README.rst +++ b/Behavioral/Specification/README.rst @@ -9,6 +9,11 @@ checked against. The composite specification class has one method called ``isSatisfiedBy`` that returns either true or false depending on whether the given object satisfies the specification. +Sample: +^^^^^^^ + +- `RulerZ `__ + UML Diagram ----------- @@ -73,4 +78,4 @@ Tests/SpecificationTest.php :linenos: .. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Specification -.. _`Specification`: http://en.wikipedia.org/wiki/Specification_pattern \ No newline at end of file +.. _`Specification`: http://en.wikipedia.org/wiki/Specification_pattern