Completed
Push — develop ( afe0ec...7c3dfe )
by
unknown
13:30
created

ModuleOptions::setPlugin()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @license MIT
7
 * @copyright  2013 - 2015 Cross Solution <http://cross-solution.de>
8
 */
9
  
10
/** */
11
namespace Geo\Options;
12
13
use Zend\Stdlib\AbstractOptions;
14
15
/**
16
 * ${CARET}
17
 * 
18
 * @author Carsten Bleek <[email protected]>
19
 * @todo write test 
20
 */
21
class ModuleOptions extends AbstractOptions
22
{
23
24
    /**
25
     * Used geo location plugin. Possible values:
26
     *  - photon
27
     *  - geo
28
     * 
29
     * @var string $plugin
30
     */
31
    protected $plugin = "photon";
32
33
    /**
34
     * Used geo coder url. Take one of these URLs
35
     * - http://photon.yawik.org/api
36
     * - http://api.cross-solution.de/geo
37
     *
38
     * @var string
39
     */
40
    protected $geoCoderUrl = "http://photon.yawik.org/api";
41
42
    /**
43
     * @param $plugin
44
     *
45
     * @return self
46
     */
47
    public function setPlugin($plugin)
48
    {
49
        $this->plugin = $plugin;
50
51
        return $this;
52
    }
53
54
    /**
55
     * @return mixed
56
     */
57
    public function getPlugin()
58
    {
59
        return $this->plugin;
60
    }
61
62
    /**
63
     * @param mixed $geoCoderUrl
64
     *
65
     * @return self
66
     */
67
    public function setGeoCoderUrl($geoCoderUrl)
68
    {
69
        $this->geoCoderUrl = $geoCoderUrl;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @return mixed
76
     */
77
    public function getGeoCoderUrl()
78
    {
79
        return $this->geoCoderUrl;
80
    }
81
}