/** * @param UserRepositoryInterface $user * @param PostRepositoryInterface $posts */ public function __construct(UserRepositoryInterface $user, PostRepositoryInterface $posts) { parent::__construct(); $this->user = $user; $this->posts = $posts; }
/** * Setup the post data * * @param PostRepositoryInterface $post */ public function __construct(PostRepositoryInterface $post) { parent::__construct(); $this->post = $post; }