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

SoapClient::getResponseCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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