PHP Class Maknz\Slack\ActionConfirmation

Show file Open project: maknz/slack

Protected Properties

Property Type Description
$dismissText string The text label for the Cancel button.
$okText string The text label for the OK button.
$text string The required description.
$title string The required title for the pop up window.

Public Methods

Method Description
__construct ( array $attributes ) : void Instantiate a new ActionConfirmation.
getDismissText ( ) : string
getOkText ( ) : string
getText ( ) : string
getTitle ( ) : string
setDismissText ( string $dismissText ) : ActionConfirmation
setOkText ( string $okText ) : ActionConfirmation
setText ( string $text ) : ActionConfirmation
setTitle ( string $title ) : ActionConfirmation
toArray ( ) : array Get the array representation of this action confirmation.

Method Details

__construct() public method

Instantiate a new ActionConfirmation.
public __construct ( array $attributes ) : void
$attributes array
return void

getDismissText() public method

public getDismissText ( ) : string
return string

getOkText() public method

public getOkText ( ) : string
return string

getText() public method

public getText ( ) : string
return string

getTitle() public method

public getTitle ( ) : string
return string

setDismissText() public method

public setDismissText ( string $dismissText ) : ActionConfirmation
$dismissText string
return ActionConfirmation

setOkText() public method

public setOkText ( string $okText ) : ActionConfirmation
$okText string
return ActionConfirmation

setText() public method

public setText ( string $text ) : ActionConfirmation
$text string
return ActionConfirmation

setTitle() public method

public setTitle ( string $title ) : ActionConfirmation
$title string
return ActionConfirmation

toArray() public method

Get the array representation of this action confirmation.
public toArray ( ) : array
return array

Property Details

$dismissText protected property

The text label for the Cancel button.
protected string $dismissText
return string

$okText protected property

The text label for the OK button.
protected string $okText
return string

$text protected property

The required description.
protected string $text
return string

$title protected property

The required title for the pop up window.
protected string $title
return string