CurlWrapperCurlException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 11
ccs 0
cts 5
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Messenger;
4
5
6
class CurlWrapperCurlException extends CurlWrapperException
7
{
8
    /**
9
     * @param resource $curlHandler
10
     */
11
    public function __construct($curlHandler)
12
    {
13
        $this->code = curl_errno($curlHandler);
14
        $this->message = curl_error($curlHandler);
15
    }
16
}