PHP Класс Maknz\Slack\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 ( 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.

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

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

Instantiate a new AttachmentField.
public __construct ( array $attributes ) : void
$attributes array
Результат void

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

Get whether this field is short enough for displaying side-by-side with other fields.
public getShort ( ) : boolean
Результат boolean

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

Get the title of the field.
public getTitle ( ) : string
Результат string

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

Get the value of the field.
public getValue ( ) : string
Результат string

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

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

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