Skip to content

Commit 4cb353f

Browse files
author
Dominik Liebler
committed
introduced sub-namespace Domain
1 parent 477a6d6 commit 4cb353f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

More/Repository/Post.php renamed to More/Repository/Domain/Post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace DesignPatterns\More\Repository;
3+
namespace DesignPatterns\More\Repository\Domain;
44

55
class Post
66
{

More/Repository/PostRepository.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace DesignPatterns\More\Repository;
44

5+
use DesignPatterns\More\Repository\Domain\Post;
6+
57
/**
68
* This class is situated between Entity layer (class Post) and access object layer (MemoryStorage).
79
*

More/Repository/Tests/RepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace DesignPatterns\More\Repository\Tests;
44

55
use DesignPatterns\More\Repository\MemoryStorage;
6-
use DesignPatterns\More\Repository\Post;
6+
use DesignPatterns\More\Repository\Domain\Post;
77
use DesignPatterns\More\Repository\PostRepository;
88
use PHPUnit\Framework\TestCase;
99

0 commit comments

Comments
 (0)