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