Completed
Branch master (f97dd7)
by Nuno
04:04 queued 01:50
created

Config::getAllMeetups()   A

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