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 Tracking Summary
 9:  *
10:  * @package     Components
11:  * @subpackage     Campaigns
12:  * @author         Constant Contact
13:  */
14: class TrackingSummary extends Component
15: {
16:     public $sends;
17:     public $opens;
18:     public $clicks;
19:     public $forwards;
20:     public $unsubscribes;
21:     public $bounces;
22: 
23:     /**
24:      * Factory method to create a TrackingSummary object from an array
25:      * @param array $props - array of properties to create object from
26:      * @return TrackingSummary
27:      */
28:     public static function create(array $props)
29:     {
30:         $tracking_summary = new TrackingSummary();
31:         $tracking_summary->sends = parent::getValue($props, "sends");
32:         $tracking_summary->opens = parent::getValue($props, "opens");
33:         $tracking_summary->clicks = parent::getValue($props, "clicks");
34:         $tracking_summary->forwards = parent::getValue($props, "forwards");
35:         $tracking_summary->unsubscribes = parent::getValue($props, "unsubscribes");
36:         $tracking_summary->bounces = parent::getValue($props, "bounces");
37:         return $tracking_summary;
38:     }
39: }
40: 
Appconnect PHP SDK API documentation generated by ApiGen 2.8.0