Maknz\Slack\AttachmentField::__construct PHP Method

__construct() public method

Instantiate a new AttachmentField.
public __construct ( array $attributes ) : void
$attributes array
return void
    public function __construct(array $attributes)
    {
        if (isset($attributes['title'])) {
            $this->setTitle($attributes['title']);
        }
        if (isset($attributes['value'])) {
            $this->setValue($attributes['value']);
        }
        if (isset($attributes['short'])) {
            $this->setShort($attributes['short']);
        }
    }