mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
93 lines
1.4 KiB
PHP
93 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.1
|
|
*
|
|
* @package phpOMS\Utils\Git
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\Utils\Git;
|
|
|
|
/**
|
|
* Gray encoding class
|
|
*
|
|
* @package phpOMS\Utils\Git
|
|
* @license OMS License 1.0
|
|
* @link http://website.orange-management.de
|
|
* @since 1.0.0
|
|
*/
|
|
class Tag
|
|
{
|
|
/**
|
|
* Name.
|
|
*
|
|
* @var string
|
|
* @since 1.0.0
|
|
*/
|
|
private $name = '';
|
|
|
|
/**
|
|
* Message.
|
|
*
|
|
* @var string
|
|
* @since 1.0.0
|
|
*/
|
|
private $message = '';
|
|
|
|
/**
|
|
* Constructor
|
|
*
|
|
* @param string $name Tag name/version
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function __construct(string $name = '')
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
/**
|
|
* Get tag message
|
|
*
|
|
* @return string
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getMessage() : string
|
|
{
|
|
return $this->message;
|
|
}
|
|
|
|
/**
|
|
* Set tag name
|
|
*
|
|
* @param string $message Tag message
|
|
*
|
|
* @return void
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function setMessage(string $message) : void
|
|
{
|
|
$this->message = $message;
|
|
}
|
|
|
|
/**
|
|
* Get tag name
|
|
*
|
|
* @return string
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getName() : string
|
|
{
|
|
return $this->name;
|
|
}
|
|
}
|