SoapClientBase   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 15
rs 10
c 2
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSoapClientClassName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SoapClient;
6
7
use WsdlToPhp\PackageBase\AbstractSoapClientBase;
8
9
/**
10
 * This class can be overridden at your will.
11
 * Its only purpose is to show you how you can use your own SoapClient client.
12
 * As you can see, you must at least override the getSoapClientClassName in order to return
13
 * your own SoapClient class name to be used.
14
 *
15
 * Full information can be found at PackageBase project homepage: https://github.com/WsdlToPhp/PackageBase.
16
 */
17
class SoapClientBase extends AbstractSoapClientBase
18
{
19
    /**
20
     * @var string
21
     */
22
    const DEFAULT_SOAP_CLIENT_CLASS = SoapClient::class;
23
24
    /**
25
     * @param string|null $soapClientClassName
26
     * @return string
27
     * @see \WsdlToPhp\PackageBase\AbstractSoapClientBase::getSoapClientClassName()
28
     */
29
    public function getSoapClientClassName(?string $soapClientClassName = null): string
30
    {
31
        return parent::getSoapClientClassName(static::DEFAULT_SOAP_CLIENT_CLASS);
32
    }
33
}
34