GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

LaravelRepresentationController::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
namespace Solvire\API\Representatives;
3
4
use Illuminate\Database\Eloquent\Model;
5
6
/**
7
 * Providing some basic CRUD level stuff
8
 *
9
 * @author solvire <[email protected]>
10
 * @package RepresentationControllers
11
 * @namespace Solvire\API\Representatives
12
 */
13
class LaravelRepresentationController extends GenericRepresentationController
14
{
15
16
    protected $model = null;
17
18 1
    public function __construct(Model $model)
19
    {
20 1
        $this->model = $model;
21 1
    }
22
    
23 1
    public function setModel(Model $model)
24
    {
25 1
        $this->model = $model;
26 1
        return $this;
27
    }
28
    
29 1
    public function getModel()
30
    {
31 1
        return $this->model;
32
    }
33
34
    /**
35
     * HTTP/1.1 200 OK
36
     * {
37
     * "href" : "https://api.mycompany.com/v1/users?offset=50&amp;limit=50"
38
     * "offset": 50,
39
     * "limit": 50,
40
     * “first”: {
41
     * “href”: "https://api.mycompany.com/v1/users"
42
     * },
43
     * “prev”: {
44
     * “href”: "https://api.mycompany.com/v1/users"
45
     * },
46
     * “next”: {
47
     * “href”: "https://api.mycompany.com/v1/users?offset=100&amp;limit=50"
48
     * },
49
     * “last”: {
50
     * “href”: "https://api.mycompany.com/v1/users?offset=50&amp;limit=50"
51
     * },
52
     * "items": [
53
     * {
54
     * ... user 51 name/value pairs ...
55
     * },
56
     * ...,
57
     * {
58
     * ... user 100 name/value pairs ...
59
     * }
60
     * }
61
     * }
62
     */
63 1
    public function getGenericContext()
64
    {
65
        // lets put together the data for render
66 1
        throw new \RuntimeException("Not implemented");
67
    }
68
}
69