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.

BaseRepresentationController   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 75
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 75
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setSerializer() 0 5 1
A getSerializer() 0 4 1
A setRenderer() 0 5 1
A getRenderer() 0 4 1
A setRequest() 0 5 1
A getRequest() 0 4 1
1
<?php
2
namespace Solvire\API\Representatives;
3
4
use Solvire\API\Serializers\BaseSerializer;
5
use Solvire\API\Renderers\BaseRenderer;
6
7
/**
8
 *
9
 * @author solvire <[email protected]>
10
 * @package RepresentationControllers
11
 * @namespace Solvire\API\Representatives
12
 */
13
abstract class BaseRepresentationController
14
{
15
16
    /**
17
     *
18
     * @var Serializer $serializer
19
     */
20
    protected $serializer = null;
21
22
    /**
23
     *
24
     * @var Renderer $renderer
25
     */
26
    protected $renderer = null;
27
28
    /**
29
     *
30
     * @var Request $request
31
     */
32
    protected $request = null;
33
34
    /**
35
     *
36
     * @param BaseSerializer $serializer            
37
     * @return \Solvire\API\Representatives\BaseRepresentationController
38
     */
39 1
    public function setSerializer(BaseSerializer $serializer)
40
    {
41 1
        $this->serializer = $serializer;
0 ignored issues
show
Documentation Bug introduced by
It seems like $serializer of type object<Solvire\API\Serializers\BaseSerializer> is incompatible with the declared type object<Solvire\API\Representatives\Serializer> of property $serializer.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
42 1
        return $this;
43
    }
44
45
    /**
46
     */
47 1
    public function getSerializer()
48
    {
49 1
        return $this->serializer;
50
    }
51
52
    /**
53
     *
54
     * @param BaseRenderer $renderer            
55
     * @return \Solvire\API\Representatives\BaseRepresentationController
56
     */
57 1
    public function setRenderer(BaseRenderer $renderer)
58
    {
59 1
        $this->renderer = $renderer;
0 ignored issues
show
Documentation Bug introduced by
It seems like $renderer of type object<Solvire\API\Renderers\BaseRenderer> is incompatible with the declared type object<Solvire\API\Representatives\Renderer> of property $renderer.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
60 1
        return $this;
61
    }
62
63
    /**
64
     */
65 1
    public function getRenderer()
66
    {
67 1
        return $this->renderer;
68
    }
69
70
    /**
71
     *
72
     * @param mixed $request            
73
     * @return \Solvire\API\Representatives\RepresentationControllers
74
     */
75 1
    public function setRequest($request)
76
    {
77 1
        $this->request = $request;
78 1
        return $this;
79
    }
80
81
    /**
82
     */
83 1
    public function getRequest()
84
    {
85 1
        return $this->request;
86
    }
87
}
88