geolocator = $geolocator; } /** * @inheritDoc */ public function geolocate( $ip ) { if ( ! isset( $this->cache[ $ip ] ) ) { $this->cache[ $ip ] = $this->geolocator->geolocate( $ip ); } return $this->cache[ $ip ]; } /** * @inheritDoc */ public function is_available() { return $this->geolocator->is_available(); } }