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

Instantiate a new payload.

  • param array $attributes
public getDescription()
 

Get the option description.

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

Get the option text.

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

Get the option URL.

  • return string
public getValue()
 

Get the option value.

  • return string
public isInitiallySelected()
 

Get whether the option group has a selected option.

  • return bool
public setDescription( $description)
 

Set the option description.

  • param mixed $description
  • return $this
  • throws \InvalidArgumentException
public setInitiallySelected( $selected)
 

Set whether the option group has a selected option.

  • param bool $selected
  • return $this
public setText( $text)
 

Set the option text.

  • param mixed $text
  • return $this
  • throws \InvalidArgumentException
public setUrl( $url)
 

Set the option URL.

  • param string $url
  • return $this
public setValue( $value)
 

Set the option value.

  • param string $value
  • return $this
public toArray()
 

Convert the block to its array representation.

  • return array
Properties
protected static $availableAttributes = ['text' => 'text', 'value' => 'value', 'description' => 'description', 'url' => 'url', 'selected' => 'initially_selected']
 

Internal attribute to property map.

  • var array
protected $description = NULL
 

Option group description.

  • var \Maknz\Slack\BlockElement\Text
protected $initially_selected = false
 

Whether this option is initially selected.

  • var bool
protected $text = NULL
 

Option text.

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

URL to be loaded when the option is clicked.

  • var string
protected $value = NULL
 

Option value.

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

Internal attribute to property map.

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