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

Instantiate a new payload.

  • param array $attributes
public static Maknz\Slack\Block::factory(array $attributes)
 

Create a Block element from a keyed array of attributes.

  • param array $attributes
  • return \Block
  • throws \InvalidArgumentException
public Maknz\Slack\Block::getBlockId()
 

Get the block identifier.

  • return string
public getElement()
 

Get the input element.

  • return \Maknz\Slack\BlockElement
public getHint()
 

Get the input hint.

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

Get the input label.

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

Get whether the input is optional.

  • return bool
public Maknz\Slack\Block::getType()
 

Get the block type.

  • return string
public Maknz\Slack\Block::setBlockId( $blockId)
 

Set the block identifier.

  • param string $blockId
  • return $this
public setElement( $element)
 

Set the input element.

  • param mixed $element
  • return $this
  • throws \InvalidArgumentException
public setHint( $hint)
 

Set the input hint.

  • param mixed $hint
  • return $this
public setLabel( $label)
 

Set the input label.

  • param mixed $label
  • return $this
public setOptional( $optional)
 

Set whether the input is optional.

  • param bool $optional
  • return $this
public toArray()
 

Convert the block to its array representation.

  • return array
Properties
protected static $availableAttributes = ['label' => 'label', 'element' => 'element', 'block_id' => 'block_id', 'hint' => 'hint', 'optional' => 'optional']
 

Internal attribute to property map.

  • var array
protected Maknz\Slack\Block::$block_id = NULL
 

Block identifier.

  • var string
protected $element = NULL
 

Input element.

  • var \Maknz\Slack\BlockElement
protected $hint = NULL
 

A hint that appears below the input.

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

Label that appears above the input.

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

Whether the input may be empty.

  • var bool
protected $type = 'input'
 

Block type.

  • var string
Methods
protected Maknz\Slack\Payload::fillProperties(array $attributes) : self
 
  • param array $attributes
  • return $this
Properties
protected static $availableAttributes = ['label' => 'label', 'element' => 'element', 'block_id' => 'block_id', 'hint' => 'hint', 'optional' => 'optional']
 

Internal attribute to property map.

  • var array
Methods
public static Maknz\Slack\Block::factory(array $attributes)
 

Create a Block element from a keyed array of attributes.

  • param array $attributes
  • return \Block
  • throws \InvalidArgumentException
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration