execute read-the-docs.sh

This commit is contained in:
Faust
2015-04-02 00:03:33 +02:00
parent c6cc7f2131
commit bba8b0df43
40 changed files with 2491 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
Specification
=============
Purpose
-------
Builds a clear specification of business rules, where objects can be
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.
UML Diagram
-----------
.. image:: uml/uml.png
:alt: Alt Specification UML Diagram
:align: center
Code
----
You can also find these code on `GitHub`_
Either.php
.. literalinclude:: Either.php
:language: php
:linenos:
PriceSpecification.php
.. literalinclude:: PriceSpecification.php
:language: php
:linenos:
SpecificationInterface.php
.. literalinclude:: SpecificationInterface.php
:language: php
:linenos:
AbstractSpecification.php
.. literalinclude:: AbstractSpecification.php
:language: php
:linenos:
Item.php
.. literalinclude:: Item.php
:language: php
:linenos:
Plus.php
.. literalinclude:: Plus.php
:language: php
:linenos:
Not.php
.. literalinclude:: Not.php
:language: php
:linenos:
Test
----
Tests/SpecificationTest.php
.. literalinclude:: Tests/SpecificationTest.php
:language: php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Specification