PHP Class Spatie\SlashCommand\AttachmentField

Afficher le fichier Open project: spatie/laravel-slack-slash-command Class Usage Examples

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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 méthode

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

create() public static méthode

public static create ( $title, $value )

displaySideBySide() public méthode

public displaySideBySide ( )

doNotDisplaySideBySide() public méthode

setTitle() public méthode

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

setValue() public méthode

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

toArray() public méthode

Get the array representation of this attachment field.
public toArray ( ) : array
Résultat array

Property Details

$short protected_oe property

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

$title protected_oe property

The required title field of the field.
protected string $title
Résultat string

$value protected_oe property

The required value of the field.
protected string $value
Résultat string