PHP Класс Spatie\SlashCommand\AttachmentField

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

create() публичный статический Метод

public static create ( $title, $value )

displaySideBySide() публичный Метод

public displaySideBySide ( )

doNotDisplaySideBySide() публичный Метод

setTitle() публичный Метод

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

setValue() публичный Метод

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

toArray() публичный Метод

Get the array representation of this attachment field.
public toArray ( ) : array
Результат array

Описание свойств

$short защищенное свойство

Whether the value is short enough to fit side by side with other values.
protected bool $short
Результат boolean

$title защищенное свойство

The required title field of the field.
protected string $title
Результат string

$value защищенное свойство

The required value of the field.
protected string $value
Результат string