1 | <?php |
||
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) |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function setMaxRadius($maxRadius) |
||
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | public function setUrl($url) |
||
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | public function getUrl() |
||
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | public function getAllMeetups() |
||
125 | |||
126 | /** |
||
127 | * {@inheritdoc} |
||
128 | */ |
||
129 | public function getKeywords() |
||
133 | |||
134 | /** |
||
135 | * {@inheritdoc} |
||
136 | */ |
||
137 | public function getMaxRadius() |
||
141 | |||
142 | /** |
||
143 | * {@inheritdoc} |
||
144 | */ |
||
145 | public function getRadius() |
||
149 | |||
150 | /** |
||
151 | * {@inheritdoc} |
||
152 | */ |
||
153 | public function getRadiusInterval() |
||
157 | |||
158 | /** |
||
159 | * {@inheritdoc} |
||
160 | */ |
||
161 | public function getCatalogProviders() |
||
165 | |||
166 | /** |
||
167 | * {@inheritdoc} |
||
168 | */ |
||
169 | public function getDetailProviders() |
||
173 | } |
||
174 |