* (c) Francis Besset * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace BeSimple\SoapClient; use BeSimple\SoapCommon\AbstractSoapBuilder; /** * @author Francis Besset */ class SoapClientBuilder extends AbstractSoapBuilder { /** * @return SoapClientBuilder */ static public function createWithDefaults() { return parent::createWithDefaults() ->withUserAgent('BeSimpleSoap') ; } public function withTrace($trace = true) { $this->soapOptions['trace'] = $trace; return $this; } public function withExceptions($exceptions = true) { $this->soapOptions['exceptions'] = $exceptions; return $this; } public function withUserAgent($userAgent) { $this->soapOptions['user_agent'] = $userAgent; return $this; } }