AbstractGetEntryPoint::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 5
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 2
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
}