Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Acme/SomeItem/Application
- interface SimeItemQuery {
- // ...
- public function findByTag(string $tag);
- // ...
- }
- namespace Acme/SomeItem/Infrastructure
- class DBSimeItemQuery {
- // ...
- public function findByTag(string $tag) {
- // Tutaj jest SQL-ka która zawiera informację od biznesu, że zwracamy obiektu bez żadnego tagu
- }
- // ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement