| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
To translate one interface for a class into a compatible interface. An adapter allows classes to work together that normally could not because of incompatible interfaces by providing its interface to clients while using the original interface.
You can also find this code on GitHub
BookInterface.php
.. literalinclude:: BookInterface.php :language: php :linenos:
Book.php
.. literalinclude:: Book.php :language: php :linenos:
EBookAdapter.php
.. literalinclude:: EBookAdapter.php :language: php :linenos:
EBookInterface.php
.. literalinclude:: EBookInterface.php :language: php :linenos:
Kindle.php
.. literalinclude:: Kindle.php :language: php :linenos:
Tests/AdapterTest.php
.. literalinclude:: Tests/AdapterTest.php :language: php :linenos:
| Back | FazBrowse Home | New Git URL |