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