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 — custom-control ( 2eba71 )
by Eric
02:57
created

CustomControl   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getPosition() 0 4 1
A setPosition() 0 4 1
A getControl() 0 4 1
A setControl() 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\Control;
13
14
/**
15
 * @author GeLo <[email protected]>
16
 */
17
class CustomControl
18
{
19
    /**
20
     * @var string
21
     */
22
    private $position;
23
24
    /**
25
     * @var string
26
     */
27
    private $control;
28
29
    /**
30
     * @param string $position
31
     * @param string $control
32
     */
33
    public function __construct($position, $control)
34
    {
35
        $this->setPosition($position);
36
        $this->setControl($control);
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getPosition()
43
    {
44
        return $this->position;
45
    }
46
47
    /**
48
     * @param string $position
49
     */
50
    public function setPosition($position)
51
    {
52
        $this->position = $position;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getControl()
59
    {
60
        return $this->control;
61
    }
62
63
    /**
64
     * @param string $control
65
     */
66
    public function setControl($control)
67
    {
68
        $this->control = $control;
69
    }
70
}
71