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::setRequest()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 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