introduced sub-namespace Domain

This commit is contained in:
Dominik Liebler
2018-06-14 17:19:47 +02:00
parent 477a6d623a
commit 4cb353fe3e
3 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<?php <?php
namespace DesignPatterns\More\Repository; namespace DesignPatterns\More\Repository\Domain;
class Post class Post
{ {

View File

@@ -2,6 +2,8 @@
namespace DesignPatterns\More\Repository; namespace DesignPatterns\More\Repository;
use DesignPatterns\More\Repository\Domain\Post;
/** /**
* This class is situated between Entity layer (class Post) and access object layer (MemoryStorage). * This class is situated between Entity layer (class Post) and access object layer (MemoryStorage).
* *

View File

@@ -3,7 +3,7 @@
namespace DesignPatterns\More\Repository\Tests; namespace DesignPatterns\More\Repository\Tests;
use DesignPatterns\More\Repository\MemoryStorage; use DesignPatterns\More\Repository\MemoryStorage;
use DesignPatterns\More\Repository\Post; use DesignPatterns\More\Repository\Domain\Post;
use DesignPatterns\More\Repository\PostRepository; use DesignPatterns\More\Repository\PostRepository;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;