You are here

protected function Random::getAddressFactory in Geocoder 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/Geocoder/Provider/Random.php \Drupal\geocoder\Plugin\Geocoder\Provider\Random::getAddressFactory()

Returns the address factory.

Return value

\Geocoder\Model\AddressFactory Return the address Factory.

File

src/Plugin/Geocoder/Provider/Random.php, line 118

Class

Random
Class Random.

Namespace

Drupal\geocoder\Plugin\Geocoder\Provider

Code

protected function getAddressFactory() {
  if (!isset($this->addressFactory)) {
    $this->addressFactory = new AddressFactory();
  }
  return $this->addressFactory;
}