Source of file CustomField.php
Size: 0,903 Bytes - Last Modified: 2021-12-23T10:20:09+00:00
/var/www/docs.ssmods.com/process/src/src/Ctct/Components/Contacts/CustomField.php
1234567891011121314151617181920212223242526272829303132333435363738394041 | <?php namespace Ctct\Components\Contacts; use Ctct\Components\Component; /** * Represents a single Custom Field for a Contact * * @package Components * @subpackage Contacts * @author Constant Contact */ class CustomField extends Component { /** * Name of the custom field * @var string */ public $name; /** * Value of the custom field * @var string */ public $value; /** * Factory method to create a CustomField object from an array * @param array $props - Associative array of initial properties to set * @return CustomField */ public static function create(array $props) { $custom_field = new CustomField(); $custom_field->name = parent::getValue($props, "name"); $custom_field->value = parent::getValue($props, "value"); return $custom_field; } } |