public function getLocationService() { if (null === $this->locationService) { $this->locationService = new LocationService($this->client, $this->inputDispatcher, $this->outputVisitor, $this->requestParser); } return $this->locationService; }