Overview

Namespaces

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

Classes

  • Address
  • Contact
  • ContactList
  • CustomField
  • EmailAddress
  • Note
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: namespace Ctct\Components\Contacts;
 3: 
 4: use Ctct\Components\Component;
 5: 
 6: /**
 7:  * Represents a Contact Note
 8:  *
 9:  * @package     Components
10:  * @subpackage     Contacts
11:  * @author         Constant Contact
12:  */
13: class Note extends Component
14: {
15:     /**
16:      * Id of the note
17:      * @var string
18:      */
19:     public $id;
20:     
21:     /**
22:      * Content of the note
23:      * @var string
24:      */
25:     public $note;
26:     
27:     /**
28:      * Date the note was created
29:      * @var string
30:      */
31:     public $created_date;
32: 
33:     /**
34:      * Factory method to create a Note object from an array
35:      * @param array $props - Associative array of initial properties to set
36:      * @return Note
37:      */
38:     public static function create(array $props)
39:     {
40:         $note = new Note();
41:         $note->id = parent::getValue($props, "id");
42:         $note->note = parent::getValue($props, "note");
43:         $note->created_date = parent::getValue($props, "created_date");
44:         return $note;
45:     }
46: }
47: 
Appconnect PHP SDK API documentation generated by ApiGen 2.8.0