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.

BaseRenderer::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\Renderers;
3
4
use Solvire\API\Serializers\BaseSerializer;
5
6
/**
7
 * Base of the Renderer classes
8
 *
9
 * @author solvire <[email protected]>
10
 * @package Renderers
11
 * @namespace Solvire\API\Renderers
12
 */
13
abstract class BaseRenderer
14
{
15
16
    /**
17
     *
18
     * @var Serializer $serializer
19
     */
20
    protected $serializer = null;
21
22
    protected $request = null;
23
24
    /**
25
     *
26
     * @param BaseSerializer $serializer            
27
     * @return \Solvire\API\Renderers\BaseRenderer
28
     */
29 2
    public function setSerializer(BaseSerializer $serializer)
30
    {
31 2
        $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\Renderers\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...
32 2
        return $this;
33
    }
34
35
    /**
36
     *
37
     * @param HttpRequest $request            
38
     * @return \Solvire\API\Representatives\RepresentationControllers
39
     */
40 1
    public function setRequest($request)
41
    {
42 1
        $this->request = $request;
43 1
        return $this;
44
    }
45
46
    /**
47
     */
48
    public function getRequest()
49
    {
50
        return $this->request;
51
    }
52
}