Overview

Namespaces

  • Ctct
    • Auth
    • Components
      • Account
      • Activities
      • Contacts
      • EmailMarketing
      • Tracking
    • Exceptions
    • Services
  • PHP

Classes

  • BounceActivity
  • ClickActivity
  • ForwardActivity
  • OpenActivity
  • OptOutActivity
  • SendActivity
  • TrackingActivity
  • TrackingSummary
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace Ctct\Components\Tracking;
 4: 
 5: use Ctct\Components\Component;
 6: 
 7: /**
 8:  * Represents a single Bounce Activity
 9:  *
10:  * @package     Components
11:  * @subpackage     CampaignTracking
12:  * @author         Constant Contact
13:  */
14: class BounceActivity extends Component
15: {
16:     public $activity_type;
17:     public $bounce_code;
18:     public $bounce_description;
19:     public $bounce_message;
20:     public $bounce_date;
21:     public $contact_id;
22:     public $email_address;
23:     public $campaign_id;
24: 
25:     /**
26:      * Factory method to create a BounceActivity object from an array
27:      * @param array $props - array of properties to create object from
28:      * @return BounceActivity
29:      */
30:     public static function create(array $props)
31:     {
32:         $bounceActivity = new BounceActivity();
33:         $bounceActivity->activity_type = parent::getValue($props, "activity_type");
34:         $bounceActivity->bounce_code = parent::getValue($props, "bounce_code");
35:         $bounceActivity->bounce_description = parent::getValue($props, "bounce_description");
36:         $bounceActivity->bounce_message = parent::getValue($props, "bounce_message");
37:         $bounceActivity->bounce_date = parent::getValue($props, "bounce_date");
38:         $bounceActivity->contact_id = parent::getValue($props, "contact_id");
39:         $bounceActivity->email_address = parent::getValue($props, "email_address");
40:         $bounceActivity->campaign_id = parent::getValue($props, "campaign_id");
41:         return $bounceActivity;
42:     }
43: }
44: 
Appconnect PHP SDK API documentation generated by ApiGen 2.8.0