for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Crummy\Phlack\Message;
class Field extends Partial implements FieldInterface
{
protected $required = ['title', 'value', 'short'];
/**
* Constructor.
*
* @param string $title
* @param string $value
* @param bool $isShort
*/
public function __construct($title = null, $value = null, $isShort = null)
parent::__construct(['title' => $title, 'value' => $value, 'short' => $isShort]);
}
* @return bool
public function isShort()
return isset($this['short']) ? $this['short'] : false;