<?php

namespace WsdlToPhp\PackageBase\Tests;

use WsdlToPhp\PackageBase\AbstractSoapClientBase;

class SoapClient extends AbstractSoapClientBase
{
    public function getSoapClientClassName($soapClientClassName = null)
    {
        return parent::getSoapClientClassName(empty($soapClientClassName) ? '\WsdlToPhp\PackageBase\Tests\Client' : $soapClientClassName);
    }
    /**
     * @return Client
     */
    public static function getSoapClient()
    {
        return parent::getSoapClient();
    }
    /**
     *
     */
    public function search()
    {
        try {
            self::getSoapClient()->search();
        } catch (\SoapFault $soapFault) {
            $this->setResult(null);
            $this->saveLastError(__METHOD__, $soapFault);
        }
    }
}
