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

SoapClient   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 14
rs 10
c 3
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A 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