Added AbstractSoapBuilder::withWsdlCache() method

This commit is contained in:
Francis Besset
2011-10-10 22:18:20 +02:00
parent 40eacb99e5
commit 0f30119294
2 changed files with 13 additions and 2 deletions

View File

@ -97,6 +97,17 @@ abstract class AbstractSoapBuilder
return $this;
}
public function withWsdlCache($cache)
{
if (!in_array($cache, Cache::getTypes())) {
throw new \InvalidArgument();
}
$this->soapOptions['cache_wsdl'] = $cache;
return $this;
}
/**
* @return AbstractSoapBuilder
*/