protected function _instantiateContact($data)
    {
        $data->append(array(
            'contact' => new AnConfig(),
        ));

        $contact = new AnObject();
        $contact->set(array(
            'address' => $data->contact->address,
            'city' => $data->contact->city,
            'country' => $data->contact->country,
            'state' => $data->contact->state,
            'zip' => $data->contact->zip,
        ));

        $this->contact = $contact;

        return $contact;
    }
protected function _instantiateContact($data)
    {
        $data->append(array(
            'contact' => new AnConfig(),
        ));

        $contact = new AnObject();
        $contact->set(array(
            'address' => $data->contact->address,
            'city' => $data->contact->city,
            'country' => $data->contact->country,
            'state' => $data->contact->state,
            'zip' => $data->contact->zip,
        ));

        $this->contact = $contact;

        return $contact;
    }
protected function _instantiateContact ( $ data ) { $ data -> append ( array ( 'contact' => new AnConfig ( ) , ) ) ; $ contact = new AnObject ( ) ; $ contact -> set ( array ( 'address' => $ data -> contact -> address , 'city' => $ data -> contact -> city , 'country' => $ data -> contact -> country , 'state' => $ data -> contact -> state , 'zip' => $ data -> contact -> zip , ) ) ; $ this -> contact = $ contact ; return $ contact ; }
Instantiate a contact object.

@param AnConfig $data The request data

@return AnObject
Instantiate a contact object .