mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-10-03 17:52:06 +02:00
introduced PostId and PostStatus and changed naming from Storage to Persistence
This commit is contained in:
@@ -33,7 +33,19 @@ You can also find this code on `GitHub`_
|
||||
|
||||
Post.php
|
||||
|
||||
.. literalinclude:: Post.php
|
||||
.. literalinclude:: Domain/Post.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
PostId.php
|
||||
|
||||
.. literalinclude:: Domain/PostId.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
PostStatus.php
|
||||
|
||||
.. literalinclude:: Domain/PostStatus.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
@@ -43,18 +55,24 @@ PostRepository.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
MemoryStorage.php
|
||||
Persistence.php
|
||||
|
||||
.. literalinclude:: MemoryStorage.php
|
||||
.. literalinclude:: InMemoryPersistence.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
InMemoryPersistence.php
|
||||
|
||||
.. literalinclude:: InMemoryPersistence.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
Tests/RepositoryTest.php
|
||||
Tests/PostRepositoryTest.php
|
||||
|
||||
.. literalinclude:: Tests/RepositoryTest.php
|
||||
.. literalinclude:: Tests/PostRepositoryTest.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
|
Reference in New Issue
Block a user