| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
To separate strategies and to enable fast switching between them. Also this pattern is a good alternative to inheritance (instead of having an abstract class that is extended).
You can also find these code on GitHub
ObjectCollection.php
.. literalinclude:: ObjectCollection.php :language: php :linenos:
ComparatorInterface.php
.. literalinclude:: ComparatorInterface.php :language: php :linenos:
DateComparator.php
.. literalinclude:: DateComparator.php :language: php :linenos:
IdComparator.php
.. literalinclude:: IdComparator.php :language: php :linenos:
Tests/StrategyTest.php
.. literalinclude:: Tests/StrategyTest.php :language: php :linenos:
| Back | FazBrowse Home | New Git URL |