/** * @return RequestOptionsProcessor */ private function getRequestOptionsProcessor() { // We want a cached instance here if ($this->requestOptionsProcessor === null) { $this->requestOptionsProcessor = $this->factory->newRequestOptionsProcessor(); } return $this->requestOptionsProcessor; }
public function testCanConstructRequestOptionsProcessor() { $instance = new SQLStoreFactory($this->store); $this->assertInstanceOf('\\SMW\\SQLStore\\RequestOptionsProcessor', $instance->newRequestOptionsProcessor()); }
/** * @return RequestOptionsProcessor */ private function getRequestOptionsProcessor() { if ($this->requestOptionsProcessor === null) { $this->requestOptionsProcessor = $this->factory->newRequestOptionsProcessor(); } return $this->requestOptionsProcessor; }