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
Push — services ( 012961 )
by Eric
03:50
created

DirectionWaypoint   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 62
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getLocation() 0 4 1
A setLocation() 0 4 1
A hasStopover() 0 4 1
A getStopover() 0 4 1
A setStopover() 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\Direction\Request;
13
14
use Ivory\GoogleMap\Service\Base\Location\LocationInterface;
15
16
/**
17
 * @see http://code.google.com/apis/maps/documentation/javascript/reference.html#DirectionWaypoint
18
 *
19
 * @author GeLo <[email protected]>
20
 */
21
class DirectionWaypoint
22
{
23
    /**
24
     * @var LocationInterface
25
     */
26
    private $location;
27
28
    /**
29
     * @var bool|null
30
     */
31
    private $stopover;
32
33
    /**
34
     * @param LocationInterface $location
35
     * @param bool|null         $stopover
36
     */
37
    public function __construct(LocationInterface $location, $stopover = null)
38
    {
39
        $this->setLocation($location);
40
        $this->setStopover($stopover);
41
    }
42
43
    /**
44
     * @return LocationInterface
45
     */
46
    public function getLocation()
47
    {
48
        return $this->location;
49
    }
50
51
    /**
52
     * @param LocationInterface $location
53
     */
54
    public function setLocation(LocationInterface $location)
55
    {
56
        $this->location = $location;
57
    }
58
59
    /**
60
     * @return bool
61
     */
62
    public function hasStopover()
63
    {
64
        return $this->stopover !== null;
65
    }
66
67
    /**
68
     * @return bool|null
69
     */
70
    public function getStopover()
71
    {
72
        return $this->stopover;
73
    }
74
75
    /**
76
     * @param bool|null $stopover
77
     */
78
    public function setStopover($stopover = null)
79
    {
80
        $this->stopover = $stopover;
81
    }
82
}
83