public function addAssocContacts($contacts)
    {
        if (!is_array($contacts)) {
            return false;
        }
        foreach ($contacts as $name => $contact) {
            if (is_object($contact) && $contact  instanceof SoapVar) {
                $contact = $contact->enc_value;
            }
            if (!($contact  instanceof contact)) {
                return false;
            }
            if ($name != $contact->name) {
                return false;
            }
            $this->contacts[] = $contact;
        }

        return true;
    }
public function addAssocContacts($contacts)
    {
        if (!is_array($contacts)) {
            return false;
        }
        foreach ($contacts as $name => $contact) {
            if (is_object($contact) && $contact  instanceof SoapVar) {
                $contact = $contact->enc_value;
            }
            if (!($contact  instanceof contact)) {
                return false;
            }
            if ($name != $contact->name) {
                return false;
            }
            $this->contacts[] = $contact;
        }

        return true;
    }
public function addAssocContacts ( $ contacts ) { if ( ! is_array ( $ contacts ) ) { return false ; } foreach ( $ contacts as $ name => $ contact ) { if ( is_object ( $ contact ) && $ contact instanceof SoapVar ) { $ contact = $ contact -> enc_value ; } if ( ! ( $ contact instanceof contact ) ) { return false ; } if ( $ name != $ contact -> name ) { return false ; } $ this -> contacts [ ] = $ contact ; } return true ; }
add an associative list of contact.

@param contact[=>] list of contact

@return bool
add an associative list of contact .