1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace PHPHub\Http\Controllers; |
4
|
|
|
|
5
|
|
|
use PHPHub\Repositories\UserRepositoryInterface; |
6
|
|
|
use Illuminate\Http\Request; |
7
|
|
|
|
8
|
|
|
class UserController extends Controller |
9
|
|
|
{ |
10
|
|
|
/** |
11
|
|
|
* @var UserRepositoryInterface |
12
|
|
|
*/ |
13
|
|
|
private $repository; |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* UserController constructor. |
17
|
|
|
* |
18
|
|
|
* @param UserRepositoryInterface $repository |
19
|
|
|
*/ |
20
|
|
|
public function __construct(UserRepositoryInterface $repository) |
21
|
|
|
{ |
22
|
|
|
$this->repository = $repository; |
23
|
|
|
} |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* Display a listing of the resource. |
27
|
|
|
* |
28
|
|
|
* @return \Illuminate\Http\Response |
29
|
|
|
*/ |
30
|
|
|
public function index() |
31
|
|
|
{ |
32
|
|
|
// |
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* Show the form for creating a new resource. |
37
|
|
|
* |
38
|
|
|
* @return \Illuminate\Http\Response |
39
|
|
|
*/ |
40
|
|
|
public function create() |
41
|
|
|
{ |
42
|
|
|
// |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* Store a newly created resource in storage. |
47
|
|
|
* |
48
|
|
|
* @param \Illuminate\Http\Request $request |
49
|
|
|
* |
50
|
|
|
* @return \Illuminate\Http\Response |
51
|
|
|
*/ |
52
|
|
|
public function store(Request $request) |
|
|
|
|
53
|
|
|
{ |
54
|
|
|
// |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* Display the specified resource. |
59
|
|
|
* |
60
|
|
|
* @param int $id |
61
|
|
|
* |
62
|
|
|
* @return \Illuminate\Http\Response |
63
|
|
|
*/ |
64
|
|
|
public function show($id) |
|
|
|
|
65
|
|
|
{ |
66
|
|
|
// |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* Show the form for editing the specified resource. |
71
|
|
|
* |
72
|
|
|
* @param int $id |
73
|
|
|
* |
74
|
|
|
* @return \Illuminate\Http\Response |
75
|
|
|
*/ |
76
|
|
|
public function edit($id) |
|
|
|
|
77
|
|
|
{ |
78
|
|
|
// |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* Update the specified resource in storage. |
83
|
|
|
* |
84
|
|
|
* @param \Illuminate\Http\Request $request |
85
|
|
|
* @param int $id |
86
|
|
|
* |
87
|
|
|
* @return \Illuminate\Http\Response |
88
|
|
|
*/ |
89
|
|
|
public function update(Request $request, $id) |
|
|
|
|
90
|
|
|
{ |
91
|
|
|
// |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* Remove the specified resource from storage. |
96
|
|
|
* |
97
|
|
|
* @param int $id |
98
|
|
|
* |
99
|
|
|
* @return \Illuminate\Http\Response |
100
|
|
|
*/ |
101
|
|
|
public function destroy($id) |
|
|
|
|
102
|
|
|
{ |
103
|
|
|
// |
104
|
|
|
} |
105
|
|
|
} |
106
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.