Copied!
CloneableInstantiable
Constants
public Maknz\Slack\AttachmentAction::STYLE_DANGER = 'danger'
public Maknz\Slack\AttachmentAction::STYLE_DEFAULT = 'default'
public Maknz\Slack\AttachmentAction::STYLE_PRIMARY = 'primary'
public Maknz\Slack\AttachmentAction::TYPE_BUTTON = 'button'
Methods
public __construct(array $attributes)
 

Instantiate a new AttachmentAction.

  • param array $attributes
  • throws \InvalidArgumentException
public getConfirm()
 
  • return \ActionConfirmation
public getName()
 
  • return string
public getStyle()
 
  • return string
public getText()
 
  • return string
public getType()
 
  • return string
public getUrl()
 
  • return string
public getValue()
 
  • return string
public setConfirm( $confirm)
 
  • param \ActionConfirmation|array $confirm
  • return \AttachmentAction
  • throws \InvalidArgumentException
public setName( $name)
 
  • param string $name
  • return \AttachmentAction
public setStyle( $style)
 
  • param string $style
  • return \AttachmentAction
public setText( $text)
 
  • param string $text
  • return \AttachmentAction
public setType( $type)
 
  • param string $type
  • return \AttachmentAction
public setUrl( $url)
 
  • param string $url
  • return \AttachmentAction
public setValue( $value)
 
  • param string $value
  • return \AttachmentAction
public toArray()
 

Get the array representation of this attachment action.

  • return array
Properties
protected static $availableAttributes = ['name' => 'name', 'text' => 'text', 'style' => 'style', 'type' => 'type', 'url' => 'url', 'value' => 'value', 'confirm' => 'confirm']
 

Internal attribute to property map.

  • var array
protected $confirm = NULL
 

Confirmation field.

  • var \ActionConfirmation
protected $name = NULL
 

The required name field of the action. The name will be returned to your Action URL.

  • var string
protected $style = NULL
 

Button style.

  • var string
protected $text = NULL
 

The required label for the action.

  • var string
protected $type = 'button'
 

The required type of the action.

  • var string
protected $url = NULL
 

Optional URL.

  • var string
protected $value = NULL
 

Optional value. It will be sent to your Action URL.

  • var string
Methods
protected Maknz\Slack\Payload::fillProperties(array $attributes) : self
 
  • param array $attributes
  • return $this
Properties
protected static $availableAttributes = ['name' => 'name', 'text' => 'text', 'style' => 'style', 'type' => 'type', 'url' => 'url', 'value' => 'value', 'confirm' => 'confirm']
 

Internal attribute to property map.

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