Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Blog\Mapper; // file path changed
- interface PostRepositoryInterface
- {
- /**
- * Return a set of all blog posts that we can iterate over.
- *
- * Each entry should be a Post instance.
- *
- * @return Post[]
- */
- public function findAllPosts();
- /**
- * Return a single blog post.
- *
- * @param int $id Identifier of the post to return.
- * @return Post
- */
- public function findPost($id);
- }
- /*namespace Blog\Model;
- interface PostRepositoryInterface
- {
- /**
- * Return a set of all blog posts that we can iterate over.
- *
- * Each entry should be a Post instance.
- *
- * @return Post[]
- */
- public function findAllPosts();
- /**
- * Return a single blog post.
- *
- * @param int $id Identifier of the post to return.
- * @return Post
- */
- public function findPost($id);
- }*/
Add Comment
Please, Sign In to add comment