Copied!
CloneableInstantiable
Methods
public __construct(array $attributes)
 

Instantiate a new AttachmentField.

  • param array $attributes
public getShort()
 

Get whether this field is short enough for displaying side-by-side with other fields.

  • return bool
public getTitle()
 

Get the title of the field.

  • return string
public getValue()
 

Get the value of the field.

  • return string
public setShort( $value)
 

Set whether this field is short enough for displaying side-by-side with other fields.

  • param string $value
  • return $this
public setTitle( $title)
 

Set the title of the field.

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

Set the value of the field.

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

Get the array representation of this attachment field.

  • return array
Properties
protected static $availableAttributes = ['title' => 'title', 'value' => 'value', 'short' => 'short']
 

Internal attribute to property map.

  • var array
protected $short = false
 

Whether the value is short enough to fit side by side with other values.

  • var bool
protected $title = NULL
 

The required title field of the field.

  • var string
protected $value = NULL
 

The required value of the field.

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

Internal attribute to property map.

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