Strategy::getParams()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 5
nc 2
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\Http\Client\Catalog;
13
14
use LaravelMeetups\Contracts\Http\Client\Strategy as Contract;
15
use LaravelMeetups\Http\Client\AbstractStrategy;
16
17
/**
18
 * Class Strategy.
19
 */
20
class Strategy extends AbstractStrategy implements Contract
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function getParams()
26
    {
27
        return [
28
            'allMeetups' => $this->config->getAllMeetups() ? 'true' : 'false',
29
            'keywords'   => $this->config->getKeywords(),
30
            'radius'     => $this->config->getRadius(),
31
        ];
32
    }
33
}
34