DuckDuckgoSearch   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A get_location() 0 3 1
1
<?php
2
3
namespace ZanySoft\LaravelSerpApi\Lib;
4
5
use ZanySoft\LaravelSerpApi\Exceptions\SerpApiSearchException;
6
7
/**
8
 * YouTube search
9
 */
10
class DuckDuckgoSearch extends SerpApiSearch
11
{
12
    public function __construct($api_key = null)
13
    {
14
        parent::__construct($api_key, 'duckduckgo');
15
    }
16
17
    /*     * *
18
     * Method is not supported.
19
     */
20
21
    public function get_location($q, $limit)
22
    {
23
        throw new SerpApiSearchException("location is not currently supported by DuckDuckgoSearch");
24
    }
25
}
26