PHP Class MC4WP_MailChimp_Interest_Category

Represents an Interest Category in MailChimp.
Since: 4.0
Mostrar archivo Open project: dannyvankooten/mailchimp-for-wordpress Class Usage Examples

Public Properties

Property Type Description
$field_type string
$id integer
$interests string[]
$name string

Public Methods

Method Description
__construct ( integer $id, string $name, string $field_type, array $interests = [] )
__get ( string $name ) : array | string[]
from_data ( object $data ) : MC4WP_MailChimp_Interest_Category
get_interest_name_by_id ( string $interest_id ) : string

Method Details

__construct() public method

public __construct ( integer $id, string $name, string $field_type, array $interests = [] )
$id integer
$name string
$field_type string
$interests array

__get() public method

public __get ( string $name ) : array | string[]
$name string
return array | string[]

from_data() public static method

public static from_data ( object $data ) : MC4WP_MailChimp_Interest_Category
$data object
return MC4WP_MailChimp_Interest_Category

get_interest_name_by_id() public method

Since: 4.0
public get_interest_name_by_id ( string $interest_id ) : string
$interest_id string
return string

Property Details

$field_type public_oe property

public string $field_type
return string

$id public_oe property

public int $id
return integer

$interests public_oe property

public string[] $interests
return string[]

$name public_oe property

public string $name
return string