introduced PostId and PostStatus and changed naming from Storage to Persistence

This commit is contained in:
Dominik Liebler
2018-06-14 18:28:40 +02:00
parent 2ab82dbfbf
commit 6c726d66b7
18 changed files with 334 additions and 743 deletions

View File

@@ -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: