Copied!
AbstractTrait
Methods
public addField( $field)
 

Add a field to the block/attachment.

  • param \Field|array $field
  • return $this
  • throws \InvalidArgumentException
public clearFields()
 

Clear the fields for the block/attachment.

  • return $this
public getFields()
 

Get the fields for the block/attachment.

  • return \Maknz\Slack\Field[]|array
public setFields(array $fields)
 

Set the fields for the block/attachment.

  • param array $fields
  • return $this
  • throws \InvalidArgumentException
Properties
protected $fields = []
 

The fields of the block/attachment.

  • var array
Methods
protected abstract getFieldClass()
 

Get the class name of valid fields.

  • return string
protected getFieldsAsArrays()
 

Iterates over all fields in this block/attachment and returns them in their array form.

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