. */ declare(strict_types=1); namespace FireflyIII\Services\Github\Object; use Carbon\Carbon; /** * * Class Release * * @SuppressWarnings(PHPMD.ShortVariable) * * @codeCoverageIgnore */ class Release extends GithubObject { /** @var string */ private $content; /** @var string */ private $id; /** @var string */ private $title; /** @var Carbon */ private $updated; /** * Release constructor. * * @param array $data */ public function __construct(array $data) { $this->id = $data['id']; $this->updated = new Carbon($data['updated']); $this->title = $data['title']; $this->content = $data['content']; } /** * @return string */ public function getContent(): string { return $this->content; } /** * @return string */ public function getId(): string { return $this->id; } /** * @return string */ public function getTitle(): string { return $this->title; } /** * @return Carbon */ public function getUpdated(): Carbon { return $this->updated; } }