PHP Class Maknz\Slack\AttachmentField

Afficher le fichier Open project: maknz/slack

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 ( 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.

Method Details

__construct() public méthode

Instantiate a new AttachmentField.
public __construct ( array $attributes ) : void
$attributes array
Résultat void

getShort() public méthode

Get whether this field is short enough for displaying side-by-side with other fields.
public getShort ( ) : boolean
Résultat boolean

getTitle() public méthode

Get the title of the field.
public getTitle ( ) : string
Résultat string

getValue() public méthode

Get the value of the field.
public getValue ( ) : string
Résultat string

setShort() public méthode

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

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