for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace JiraRestApi\Request;
class RequestComment implements \JsonSerializable
{
/** @var string */
public $id;
public $body;
/** @var bool */
public $public;
/** @var \JiraRestApi\Request\Author */
public $author;
/** @var \DateTimeInterface */
public $created;
/**
* @param string $body
*
* @return $this
*/
public function setBody(string $body)
$this->body = $body;
return $this;
}
* @param bool $public True for is public, false otherwise
public function setIsPublic(bool $public)
$this->public = $public;
public function jsonSerialize()
return array_filter(get_object_vars($this), function ($var) {
return $var !== null;
});