1 | <?php |
||
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) |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function setMaxRadius($maxRadius) |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public function setUrl($url) |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public function getUrl() |
||
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | public function getAllMeetups() |
||
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | public function getKeywords() |
||
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | */ |
||
126 | public function getMaxRadius() |
||
130 | |||
131 | /** |
||
132 | * {@inheritdoc} |
||
133 | */ |
||
134 | public function getRadius() |
||
138 | |||
139 | /** |
||
140 | * {@inheritdoc} |
||
141 | */ |
||
142 | public function getRadiusInterval() |
||
146 | |||
147 | /** |
||
148 | * {@inheritdoc} |
||
149 | */ |
||
150 | public function getCatalogProviders() |
||
154 | |||
155 | /** |
||
156 | * {@inheritdoc} |
||
157 | */ |
||
158 | public function getDetailProviders() |
||
162 | } |