Copied!
CloneableInstantiable
Methods
public Maknz\Slack\Payload::__construct(array $attributes)
 

Instantiate a new payload.

  • param array $attributes
public getConfirm()
 

Get the text that confirms the action.

  • return \Maknz\Slack\BlockElement\Text
public getDeny()
 

Get the text that denies the action.

  • return \Maknz\Slack\BlockElement\Text
public getText()
 

Get the confirmation explanatory text.

  • return \Maknz\Slack\BlockElement\Text
public getTitle()
 

Get the confirmation title.

  • return \Maknz\Slack\BlockElement\Text
public setConfirm( $confirm)
 

Set the text that confirms the action.

  • param mixed $confirm
  • return $this
  • throws \InvalidArgumentException
public setDeny( $deny)
 

Set the text that denies the action.

  • param mixed $deny
  • return $this
  • throws \InvalidArgumentException
public setText( $text)
 

Set the confirmation explanatory text.

  • param mixed $text
  • return $this
  • throws \InvalidArgumentException
public setTitle( $title)
 

Set the confirmation title.

  • param mixed $title
  • return $this
  • throws \InvalidArgumentException
public toArray()
 

Convert the block to its array representation.

  • return array
Properties
protected static $availableAttributes = ['title' => 'title', 'text' => 'text', 'confirm' => 'confirm', 'deny' => 'deny']
 

Internal attribute to property map.

  • var array
protected $confirm = NULL
 

Text that confirms the action.

  • var \Maknz\Slack\BlockElement\Text
protected $deny = NULL
 

Text that denies the action.

  • var \Maknz\Slack\BlockElement\Text
protected $text = NULL
 

Confirmation explanatory text.

  • var \Maknz\Slack\BlockElement\Text
protected $title = NULL
 

Confirmation title.

  • var \Maknz\Slack\BlockElement\Text
Methods
protected Maknz\Slack\Payload::fillProperties(array $attributes) : self
 
  • param array $attributes
  • return $this
Properties
protected static $availableAttributes = ['title' => 'title', 'text' => 'text', 'confirm' => 'confirm', 'deny' => 'deny']
 

Internal attribute to property map.

  • var array
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration