mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-28 18:50:11 +02:00
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.
This commit is contained in:
@@ -9,6 +9,11 @@ checked against. The composite specification class has one method called
|
|||||||
``isSatisfiedBy`` that returns either true or false depending on whether
|
``isSatisfiedBy`` that returns either true or false depending on whether
|
||||||
the given object satisfies the specification.
|
the given object satisfies the specification.
|
||||||
|
|
||||||
|
Sample:
|
||||||
|
^^^^^^^
|
||||||
|
|
||||||
|
- `RulerZ <https://github.com/K-Phoen/rulerz>`__
|
||||||
|
|
||||||
UML Diagram
|
UML Diagram
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
@@ -73,4 +78,4 @@ Tests/SpecificationTest.php
|
|||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Specification
|
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Specification
|
||||||
.. _`Specification`: http://en.wikipedia.org/wiki/Specification_pattern
|
.. _`Specification`: http://en.wikipedia.org/wiki/Specification_pattern
|
||||||
|
Reference in New Issue
Block a user