for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the WoW-Apps/Symfony-Slack-Bot bundle for Symfony.
* https://github.com/wow-apps/symfony-slack-bot
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* https://github.com/wow-apps/symfony-slack-bot/blob/master/LICENSE
* For technical documentation.
* https://wow-apps.github.io/symfony-slack-bot/docs/
* Author Alexey Samara <[email protected]>
* Copyright 2016 WoW-Apps.
*/
namespace WowApps\SlackBundle\DTO;
/**
* Class AttachmentField.
* @author Alexey Samara <[email protected]>
class AttachmentField
{
/** @var string */
private $title;
private $value;
/** @var bool */
private $short;
* MessageAttachmentField constructor.
* @param string $title
* @param string $value
* @param bool $short
public function __construct(string $title = '', string $value = '', bool $short = false)
$this->title = $title;
$this->value = $value;
$this->short = $short;
}
* @return string
public function getTitle(): string
return $this->title;
* @return AttachmentField
public function setTitle(string $title): AttachmentField
return $this;
public function getValue(): string
return $this->value;
public function setValue(string $value): AttachmentField
* @return bool
public function isShort(): bool
return $this->short;
public function setShort(bool $short): AttachmentField