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   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 56
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setModel() 0 5 1
A getModel() 0 4 1
A getGenericContext() 0 5 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