class DomainWhitelisting extends Message implements ProfileInterface (View source)

Class DomainWhitelisting

Traits

Class RequestType

Constants

TYPE_ADD

Add type

TYPE_DELETE

Delete type

TYPE_READ

Read type

Methods

__construct(array $domains = [])

DomainWhitelisting constructor.

mixed
getSender()

Get sender id

from Message
array
toData()

To array for send api

$this
usePost()

Use post type

$this
useGet()

Use get type

$this
useDelete()

Use delete type

string
getCurlType()

Get request type

$this
setAction($action)

Set domain whitelisting action

$this
setDomains([]|string $domains)

Set domains

Details

__construct(array $domains = [])

DomainWhitelisting constructor.

Parameters

array $domains

mixed getSender()

Get sender id

Return Value

mixed

array toData()

To array for send api

Return Value

array

$this usePost()

Use post type

Return Value

$this

$this useGet()

Use get type

Return Value

$this

$this useDelete()

Use delete type

Return Value

$this

string getCurlType()

Get request type

Return Value

string

$this setAction($action)

Set domain whitelisting action

Parameters

$action

Return Value

$this

$this setDomains([]|string $domains)

Set domains

Parameters

[]|string $domains

Return Value

$this