protected function initializeCustomerAddress(array $attr)
    {

        // try to load the customer address with the given entity ID
        if ($entity = $this->loadCustomerAddress($attr[MemberNames::ENTITY_ID])) {
            return $this->mergeEntity($entity, $attr);
        }

        // remove the entity ID
        unset($attr[MemberNames::ENTITY_ID]);

        // simply return the attributes
        return $attr;
    }
protected function initializeCustomerAddress(array $attr)
    {

        // try to load the customer address with the given entity ID
        if ($entity = $this->loadCustomerAddress($attr[MemberNames::ENTITY_ID])) {
            return $this->mergeEntity($entity, $attr);
        }

        // remove the entity ID
        unset($attr[MemberNames::ENTITY_ID]);

        // simply return the attributes
        return $attr;
    }
protected function initializeCustomerAddress ( array $ attr ) { // try to load the customer address with the given entity ID if ( $ entity = $ this -> loadCustomerAddress ( $ attr [ MemberNames :: ENTITY_ID ] ) ) { return $ this -> mergeEntity ( $ entity , $ attr ) ; } // remove the entity ID unset ( $ attr [ MemberNames :: ENTITY_ID ] ) ; // simply return the attributes return $ attr ; }
Initialize the customer address with the passed attributes and returns an instance.

@param array $attr The customer address attributes

@return array The initialized customer address
Initialize the customer address with the passed attributes and returns an instance .