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

Instantiate a new payload.

  • param array $attributes
public Maknz\Slack\Block\ElementsBlock::addElement( $element)
 

Add an element to the block.

  • param array|\BlockElement $element
  • return $this
  • throws \InvalidArgumentException
public Maknz\Slack\Block\ElementsBlock::clearElements()
 

Remove all elements from the block.

  • return $this
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 Maknz\Slack\Block\ElementsBlock::getElements()
 

Get the elements included in the block.

  • return \BlockElement[]
public Maknz\Slack\Block\ElementsBlock::getElementsAsArrays()
 

Get the elements included in the block in an array representation.

  • return array
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 Maknz\Slack\Block\ElementsBlock::setElements(array $elements)
 

Set the elements included in the block.

  • param array $elements
  • return $this
  • throws \InvalidArgumentException
public Maknz\Slack\Block\ElementsBlock::toArray()
 

Convert the block to its array representation.

  • return array
Properties
protected static Maknz\Slack\Block\ElementsBlock::$availableAttributes = ['elements' => 'elements', 'block_id' => 'block_id']
 

Internal attribute to property map.

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

Block identifier.

  • var string
protected Maknz\Slack\Block\ElementsBlock::$elements = []
 

Elements to be displayed within the block.

  • var \BlockElement[]
protected $type = 'context'
 

Block type.

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

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