SoapClientBase::getSoapClientClassName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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