Passed
Push — master ( f9a48a...945dc8 )
by Mike
03:01
created

AbstractGetEntryPoint::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 5
Ratio 100 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 5
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * ©[2016] SugarCRM Inc.  Licensed by SugarCRM under the Apache 2.0 license.
4
 */
5
6
namespace SugarAPI\SDK\EntryPoint\Abstracts\GET;
7
8
use SugarAPI\SDK\EntryPoint\Abstracts\AbstractEntryPoint;
9
use SugarAPI\SDK\Request\GET;
10
use SugarAPI\SDK\Response\JSON;
11
12
abstract class AbstractGetEntryPoint extends AbstractEntryPoint {
13
14 1
    public function __construct($url, array $options = array()) {
15 1
        $this->setRequest(new GET());
16 1
        $this->setResponse(new JSON($this->Request->getCurlObject()));
17 1
        parent::__construct($url, $options);
18 1
    }
19
20
}