PHP 클래스 Spatie\SlashCommand\AttachmentField

파일 보기 프로젝트 열기: spatie/laravel-slack-slash-command 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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