public function withWsdlCache($cache) { if (!in_array($cache, Cache::getTypes(), true)) { throw new \InvalidArgumentException(); } $this->soapOptions['cache_wsdl'] = $cache; return $this; }