Copied!
  • property bool $is_preview Whether or not the linkMetadata has to be fetched for this particular link
  • property string $link_id
  • property \PHPFUI\ConstantContact\Definition\LinkMetadata[] $link_metadata Metadata like text, description, image associated with the link. Writing to this stores a placeholder value for link metadata. Supporting networks will store their own link metadata upon publishing the link.
  • property string $linked_activity_id If the link url is related to another activity (i.e. URL of a sign up landing page, shoppable landing page, email permalink, etc) this is the activity id of the related activity.
  • property string $long_url the long version of the url by the UrlShortener service. Each component of the long link url must be appropriately encoded such that it does not include any illegal characters. Example: https://www.host.com/path+with%20space?q=query%20with+space#fragment+with%20space
  • property string $short_url the shortened url by the UrlShortener service. Each component of the shortened link url must be appropriately encoded such that it does not include any illegal characters. Example: https://www.host.com/path+with%20space?q=query%20with+space#fragment+with%20space
  • property string $url The url as entered by the user. May or may not include the protocol: 'google.com', 'www.google.com', 'http://google.com', 'http://google.com/'. Each component of the link url must be appropriately encoded such that it does not include any illegal characters. Example: https://www.host.com/path+with%20space?q=query%20with+space#fragment+with%20space
CloneableInstantiable
Methods
public PHPFUI\ConstantContact\Definition\Base::__construct(array $initialValues = [])
public PHPFUI\ConstantContact\Definition\Base::__get(string $field) : ?mixed
 

Unset fields will return null

public PHPFUI\ConstantContact\Definition\Base::__set(string $field, ?mixed $value)
 
  • return mixed value being set to allow for assignment chaining
public PHPFUI\ConstantContact\Definition\Base::getData() : array
 
  • return array representation of data
public PHPFUI\ConstantContact\Definition\Base::getFields() : array
 
  • return array all the valid fields for the object. Index is field name and value is the type.
public PHPFUI\ConstantContact\Definition\Base::getJSON() : string
 
  • return string pretty print JSON
public PHPFUI\ConstantContact\Definition\Base::jsonSerialize() : array
 

Impliment JsonSerializable

  • return array representation of data
public PHPFUI\ConstantContact\Definition\Base::toArray() : array
 

More descriptive alternative to getData()

  • return array representation of data
Properties
protected static array $fields = ['is_preview' => 'bool', 'link_id' => 'string', 'link_metadata' => 'array<\PHPFUI\ConstantContact\Definition\LinkMetadata>', 'linked_activity_id' => 'string', 'long_url' => 'string', 'short_url' => 'string', 'url' => 'string']
protected static array PHPFUI\ConstantContact\Definition\Base::$maxLength = []
 
  • var array<string, int> maximum allowed values. Arrays are size, int and float are values, strings are length.
protected static array PHPFUI\ConstantContact\Definition\Base::$minLength = []
 
  • var array<string, int> minimum allowed values. Arrays are size, int and float are values, strings are length.
protected static array PHPFUI\ConstantContact\Definition\Base::$requiredFields = []
 
  • var string[] required fields.
Properties
protected static array $fields = ['is_preview' => 'bool', 'link_id' => 'string', 'link_metadata' => 'array<\PHPFUI\ConstantContact\Definition\LinkMetadata>', 'linked_activity_id' => 'string', 'long_url' => 'string', 'short_url' => 'string', 'url' => 'string']
protected static array PHPFUI\ConstantContact\Definition\Base::$maxLength = []
 
  • var array<string, int> maximum allowed values. Arrays are size, int and float are values, strings are length.
protected static array PHPFUI\ConstantContact\Definition\Base::$minLength = []
 
  • var array<string, int> minimum allowed values. Arrays are size, int and float are values, strings are length.
protected static array PHPFUI\ConstantContact\Definition\Base::$requiredFields = []
 
  • var string[] required fields.
© 2026 Bruce Wells
Search Namespaces \ Classes
Configuration