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.
Completed
Pull Request — master (#177)
by Eric
08:46 queued 06:24
created

PlaceAutocompleteTerm   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 2
cbo 0
dl 0
loc 60
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A hasValue() 0 4 1
A getValue() 0 4 1
A setValue() 0 4 1
A hasOffset() 0 4 1
A getOffset() 0 4 1
A setOffset() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Ivory Google Map package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\GoogleMap\Service\Place\Autocomplete\Response;
13
14
/**
15
 * @author GeLo <[email protected]>
16
 */
17
class PlaceAutocompleteTerm
18
{
19
    /**
20
     * @var string|null
21
     */
22
    private $value;
23
24
    /**
25
     * @var int|null
26
     */
27
    private $offset;
28
29
    /**
30
     * @return bool
31
     */
32
    public function hasValue()
33
    {
34
        return $this->value !== null;
35
    }
36
37
    /**
38
     * @return string|null
39
     */
40
    public function getValue()
41
    {
42
        return $this->value;
43
    }
44
45
    /**
46
     * @param string|null $value
47
     */
48
    public function setValue($value)
49
    {
50
        $this->value = $value;
51
    }
52
53
    /**
54
     * @return bool
55
     */
56
    public function hasOffset()
57
    {
58
        return $this->offset !== null;
59
    }
60
61
    /**
62
     * @return int|null
63
     */
64
    public function getOffset()
65
    {
66
        return $this->offset;
67
    }
68
69
    /**
70
     * @param int|null $offset
71
     */
72
    public function setOffset($offset)
73
    {
74
        $this->offset = $offset;
75
    }
76
}
77