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 — static-map ( 1bc0cf )
by Eric
64:02
created

StaticMapEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 1
dl 0
loc 45
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getMap() 0 4 1
A getParameters() 0 4 1
A setParameter() 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\Helper\Event;
13
14
use Ivory\GoogleMap\Map;
15
use Symfony\Component\EventDispatcher\Event;
16
17
/**
18
 * @author GeLo <[email protected]>
19
 */
20
class StaticMapEvent extends Event
21
{
22
    /**
23
     * @var Map
24
     */
25
    private $map;
26
27
    /**
28
     * @var mixed[]
29
     */
30
    private $parameters = [];
31
32
    /**
33
     * @param Map $map
34
     */
35
    public function __construct(Map $map)
36
    {
37
        $this->map = $map;
38
    }
39
40
    /**
41
     * @return Map
42
     */
43
    public function getMap()
44
    {
45
        return $this->map;
46
    }
47
48
    /**
49
     * @return mixed[]
50
     */
51
    public function getParameters()
52
    {
53
        return $this->parameters;
54
    }
55
56
    /**
57
     * @param string $parameter
58
     * @param mixed  $value
59
     */
60
    public function setParameter($parameter, $value)
61
    {
62
        $this->parameters[$parameter] = $value;
63
    }
64
}
65