PHP Class Spatie\SlashCommand\AttachmentField

Mostrar archivo Open project: spatie/laravel-slack-slash-command Class Usage Examples

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 ( string $title, string $value )
create ( $title, $value )
displaySideBySide ( )
doNotDisplaySideBySide ( )
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

public __construct ( string $title, string $value )
$title string
$value string

create() public static method

public static create ( $title, $value )

displaySideBySide() public method

public displaySideBySide ( )

doNotDisplaySideBySide() public method

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