Code Duplication    Length = 54-54 lines in 2 locations

src/Control/ScaleControl.php 1 location

@@ 19-72 (lines=54) @@
16
 *
17
 * @author GeLo <[email protected]>
18
 */
19
class ScaleControl
20
{
21
    /**
22
     * @var string
23
     */
24
    private $position;
25
26
    /**
27
     * @var string
28
     */
29
    private $style;
30
31
    /**
32
     * @param string $position
33
     * @param string $style
34
     */
35
    public function __construct($position = ControlPosition::BOTTOM_LEFT, $style = ScaleControlStyle::DEFAULT_)
36
    {
37
        $this->setPosition($position);
38
        $this->setStyle($style);
39
    }
40
41
    /**
42
     * @return string
43
     */
44
    public function getPosition()
45
    {
46
        return $this->position;
47
    }
48
49
    /**
50
     * @param string $position
51
     */
52
    public function setPosition($position)
53
    {
54
        $this->position = $position;
55
    }
56
57
    /**
58
     * @return string
59
     */
60
    public function getStyle()
61
    {
62
        return $this->style;
63
    }
64
65
    /**
66
     * @param string $style
67
     */
68
    public function setStyle($style)
69
    {
70
        $this->style = $style;
71
    }
72
}
73

src/Control/ZoomControl.php 1 location

@@ 19-72 (lines=54) @@
16
 *
17
 * @author GeLo <[email protected]>
18
 */
19
class ZoomControl
20
{
21
    /**
22
     * @var string
23
     */
24
    private $position;
25
26
    /**
27
     * @var string
28
     */
29
    private $style;
30
31
    /**
32
     * @param string $position
33
     * @param string $style
34
     */
35
    public function __construct($position = ControlPosition::TOP_LEFT, $style = ZoomControlStyle::DEFAULT_)
36
    {
37
        $this->setPosition($position);
38
        $this->setStyle($style);
39
    }
40
41
    /**
42
     * @return string
43
     */
44
    public function getPosition()
45
    {
46
        return $this->position;
47
    }
48
49
    /**
50
     * @param string $position
51
     */
52
    public function setPosition($position)
53
    {
54
        $this->position = $position;
55
    }
56
57
    /**
58
     * @return string
59
     */
60
    public function getStyle()
61
    {
62
        return $this->style;
63
    }
64
65
    /**
66
     * @param string $style
67
     */
68
    public function setStyle($style)
69
    {
70
        $this->style = $style;
71
    }
72
}
73