PHP Class Maknz\Slack\AttachmentField

Datei anzeigen Open project: maknz/slack

Protected Properties

Property Type Description
$short boolean Whether the value is short enough to fit side by side with other values.
$title string The required title field of the field.
$value string The required value of the field.

Public Methods

Method Description
__construct ( array $attributes ) : void Instantiate a new AttachmentField.
getShort ( ) : boolean Get whether this field is short enough for displaying side-by-side with other fields.
getTitle ( ) : string Get the title of the field.
getValue ( ) : string Get the value of the field.
setShort ( string $value ) Set whether this field is short enough for displaying side-by-side with other fields.
setTitle ( string $title ) Set the title of the field.
setValue ( string $value ) Set the value of the field.
toArray ( ) : array Get the array representation of this attachment field.

Method Details

__construct() public method

Instantiate a new AttachmentField.
public __construct ( array $attributes ) : void
$attributes array
return void

getShort() public method

Get whether this field is short enough for displaying side-by-side with other fields.
public getShort ( ) : boolean
return boolean

getTitle() public method

Get the title of the field.
public getTitle ( ) : string
return string

getValue() public method

Get the value of the field.
public getValue ( ) : string
return string

setShort() public method

Set whether this field is short enough for displaying side-by-side with other fields.
public setShort ( string $value )
$value string

setTitle() public method

Set the title of the field.
public setTitle ( string $title )
$title string

setValue() public method

Set the value of the field.
public setValue ( string $value )
$value string

toArray() public method

Get the array representation of this attachment field.
public toArray ( ) : array
return array

Property Details

$short protected_oe property

Whether the value is short enough to fit side by side with other values.
protected bool $short
return boolean

$title protected_oe property

The required title field of the field.
protected string $title
return string

$value protected_oe property

The required value of the field.
protected string $value
return string