Completed
Push — master ( ac2b84...734f6a )
by James
03:21
created

SoapClient::__construct()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 21
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 21
rs 9.3142
cc 3
eloc 11
nc 4
nop 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A SoapClient::getResponseCode() 0 4 1
1
<?php
2
/**
3
 * Contains \jamesiarmes\PhpEws\SoapClient.
4
 */
5
6
namespace jamesiarmes\PhpEws;
7
8
use \jamesiarmes\PhpNtlm\SoapClient as NtlmSoapClient;
9
10
/**
11
 * Handles SOAP communication with the Exchange server using NTLM
12
 * authentication.
13
 *
14
 * @package php-ews\Auth
15
 */
16
class SoapClient extends NtlmSoapClient
17
{
18
    /**
19
     * Returns the response code from the last request
20
     *
21
     * @return integer
22
     *
23
     * @todo Move this to the php-ntlm library and remove this class.
24
     */
25
    public function getResponseCode()
26
    {
27
        return curl_getinfo($this->ch, CURLINFO_HTTP_CODE);
28
    }
29
}
30