Exemple #1
0
 /**
  * @return Post[]
  */
 public function handle(PostRepo $post_repo)
 {
     return $post_repo->all();
 }
Exemple #2
0
 /**
  * @return Post
  */
 public function handle(PostRepo $post_repo)
 {
     return $post_repo->latest();
 }
Exemple #3
0
 /**
  * @return ValueObject\Post
  */
 public function handle(PostRepo $post_repo)
 {
     return $post_repo->fetch($this->id);
 }
Exemple #4
0
 public function handle(\App\Domain\Repo\PostRepo $post_repo)
 {
     $post_repo->store($this->post);
 }