public function addContacts($contacts)
    {
        if (!is_array($contacts)) {
            return false;
        }
        foreach ($contacts as $contact) {
            if (!($contact  instanceof contact)) {
                return false;
            }
        }
        $this->contacts = array_merge($this->contacts, $contacts);

        return true;
    }
public function addContacts($contacts)
    {
        if (!is_array($contacts)) {
            return false;
        }
        foreach ($contacts as $contact) {
            if (!($contact  instanceof contact)) {
                return false;
            }
        }
        $this->contacts = array_merge($this->contacts, $contacts);

        return true;
    }
public function addContacts ( $ contacts ) { if ( ! is_array ( $ contacts ) ) { return false ; } foreach ( $ contacts as $ contact ) { if ( ! ( $ contact instanceof contact ) ) { return false ; } } $ this -> contacts = array_merge ( $ this -> contacts , $ contacts ) ; return true ; }
add a list of contact.

@param contact[] list of contact

@return bool
add a list of contact .