Config::getRadiusInterval()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of Laravel Meetups.
5
 *
6
 * (c) Nuno Maduro <[email protected]>
7
 *
8
 *  For the full copyright and license information, please view the LICENSE
9
 *  file that was distributed with this source code.
10
 */
11
12
namespace LaravelMeetups;
13
14
use LaravelMeetups\Contracts\Config as Contract;
15
16
/**
17
 * Class Config.
18
 */
19
class Config implements Contract
20
{
21
    /**
22
     * The provider base url.
23
     *
24
     * @var string
25
     */
26
    private $url = 'https://www.meetup.com/find/events/';
27
28
    /**
29
     * The all meetups param.
30
     *
31
     * If true, all the meetups will be displayed by the
32
     * provided.
33
     *
34
     * @var bool
35
     */
36
    private $allMeetups = true;
37
38
    /**
39
     * The keywords param.
40
     *
41
     * @var string
42
     */
43
    private $keywords = 'Laravel';
44
45
    /**
46
     * The max radius param.
47
     *
48
     * @var int
49
     */
50
    private $maxRadius = 200;
51
52
    /**
53
     * The radius interval  param.
54
     *
55
     * @var int
56
     */
57
    private $radiusInterval = 100;
58
59
    /**
60
     * The radius  param.
61
     *
62
     * @var int
63
     */
64
    private $radius = 25;
65
66
    /**
67
     * All catalog providers.
68
     *
69
     * @var array
70
     */
71
    private $catalogProviders = ['LaravelMeetups\Providers\Catalog\Option', 'LaravelMeetups\Providers\Catalog\Date', 'LaravelMeetups\Providers\Catalog\Title', 'LaravelMeetups\Providers\Catalog\Location', 'LaravelMeetups\Providers\Catalog\Members'];
72
73
    /**
74
     * All detail providers.
75
     *
76
     * @var array
77
     */
78
    private $detailProviders = ['LaravelMeetups\Providers\Detail\Title', 'LaravelMeetups\Providers\Detail\Join'];
79
80
    /**
81
     * {@inheritdoc}
82
     */
83
    public function setRadius($radius)
84
    {
85
        $this->radius = $radius;
86
87
        return $this;
88
    }
89
90
    /**
91
     * {@inheritdoc}
92
     */
93
    public function setMaxRadius($maxRadius)
94
    {
95
        $this->maxRadius = $maxRadius;
96
97
        return $this;
98
    }
99
100
    /**
101
     * {@inheritdoc}
102
     */
103
    public function setUrl($url)
104
    {
105
        $this->url = $url;
106
107
        return $this;
108
    }
109
110
    /**
111
     * {@inheritdoc}
112
     */
113
    public function getUrl()
114
    {
115
        return $this->url;
116
    }
117
118
    /**
119
     * {@inheritdoc}
120
     */
121
    public function getAllMeetups()
122
    {
123
        return $this->allMeetups;
124
    }
125
126
    /**
127
     * {@inheritdoc}
128
     */
129
    public function getKeywords()
130
    {
131
        return $this->keywords;
132
    }
133
134
    /**
135
     * {@inheritdoc}
136
     */
137
    public function getMaxRadius()
138
    {
139
        return $this->maxRadius;
140
    }
141
142
    /**
143
     * {@inheritdoc}
144
     */
145
    public function getRadius()
146
    {
147
        return $this->radius;
148
    }
149
150
    /**
151
     * {@inheritdoc}
152
     */
153
    public function getRadiusInterval()
154
    {
155
        return $this->radiusInterval;
156
    }
157
158
    /**
159
     * {@inheritdoc}
160
     */
161
    public function getCatalogProviders()
162
    {
163
        return $this->catalogProviders;
164
    }
165
166
    /**
167
     * {@inheritdoc}
168
     */
169
    public function getDetailProviders()
170
    {
171
        return $this->detailProviders;
172
    }
173
}
174