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
04:22 queued 01:54
created

AlternatePlaceId::setScope()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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\Base;
13
14
/**
15
 * @author GeLo <[email protected]>
16
 */
17
class AlternatePlaceId
18
{
19
    /**
20
     * @var string|null
21
     */
22
    private $placeId;
23
24
    /**
25
     * @var string|null
26
     */
27
    private $scope;
28
29
    /**
30
     * @return bool
31
     */
32
    public function hasPlaceId()
33
    {
34
        return $this->placeId !== null;
35
    }
36
37
    /**
38
     * @return string|null
39
     */
40
    public function getPlaceId()
41
    {
42
        return $this->placeId;
43
    }
44
45
    /**
46
     * @param string|null $placeId
47
     */
48
    public function setPlaceId($placeId)
49
    {
50
        $this->placeId = $placeId;
51
    }
52
53
    /**
54
     * @return bool
55
     */
56
    public function hasScope()
57
    {
58
        return $this->scope !== null;
59
    }
60
61
    /**
62
     * @return string|null
63
     */
64
    public function getScope()
65
    {
66
        return $this->scope;
67
    }
68
69
    /**
70
     * @param string|null $scope
71
     */
72
    public function setScope($scope)
73
    {
74
        $this->scope = $scope;
75
    }
76
}
77