Completed
Push — master ( dbb8d9...dd5219 )
by Michael
07:34
created

TeamController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
use GolfLeague\Storage\Team\TeamRepository as TeamRepo;
4
5
class TeamController extends \BaseController {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
6
7
    public function __construct(TeamRepo $team)
8
    {
9
        $this->team = $team;
10
    }
11
    /**
12
	 * Display a listing of the resource.
13
	 *
14
	 * @return Response
15
	 */
16
	public function index()
17
	{
18
		return $this->team->all();
19
	}
20
21
22
	/**
23
	 * Show the form for creating a new resource.
24
	 *
25
	 * @return Response
26
	 */
27
	public function create()
28
	{
29
		//
30
	}
31
32
33
	/**
34
	 * Store a newly created resource in storage.
35
	 *
36
	 * @return Response
37
	 */
38
	public function store()
39
	{
40
		//
41
	}
42
43
44
	/**
45
	 * Display the specified resource.
46
	 *
47
	 * @param  int  $id
48
	 * @return Response
49
	 */
50
	public function show($id)
51
	{
52
		//
53
	}
54
55
56
	/**
57
	 * Show the form for editing the specified resource.
58
	 *
59
	 * @param  int  $id
60
	 * @return Response
61
	 */
62
	public function edit($id)
63
	{
64
		//
65
	}
66
67
68
	/**
69
	 * Update the specified resource in storage.
70
	 *
71
	 * @param  int  $id
72
	 * @return Response
73
	 */
74
	public function update($id)
75
	{
76
		//
77
	}
78
79
80
	/**
81
	 * Remove the specified resource from storage.
82
	 *
83
	 * @param  int  $id
84
	 * @return Response
85
	 */
86
	public function destroy($id)
87
	{
88
		//
89
	}
90
91
92
}
93