PHP 클래스 Maknz\Slack\AttachmentField

파일 보기 프로젝트 열기: maknz/slack

보호된 프로퍼티들

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