public function setAddressComponents(array $addressComponents)
    {
        $this->addressComponents = array();

        foreach ($addressComponents as $addressComponent) {
            $this->addAddressComponent($addressComponent);
        }
    }
public function setAddressComponents(array $addressComponents)
    {
        $this->addressComponents = array();

        foreach ($addressComponents as $addressComponent) {
            $this->addAddressComponent($addressComponent);
        }
    }
public function setAddressComponents ( array $ addressComponents ) { $ this -> addressComponents = array ( ) ; foreach ( $ addressComponents as $ addressComponent ) { $ this -> addAddressComponent ( $ addressComponent ) ; } }
Sets address components.

@param array $addressComponents The address components.
Sets address components .