Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
4 / 4
CRAP
100.00% covered (success)
100.00%
1 / 1
Tag
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
4 / 4
4
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getMessage
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setMessage
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2/**
3 * Jingga
4 *
5 * PHP Version 8.1
6 *
7 * @package   phpOMS\Utils\Git
8 * @copyright Dennis Eichhorn
9 * @license   OMS License 2.0
10 * @version   1.0.0
11 * @link      https://jingga.app
12 */
13declare(strict_types=1);
14
15namespace phpOMS\Utils\Git;
16
17/**
18 * Gray encoding class
19 *
20 * @package phpOMS\Utils\Git
21 * @license OMS License 2.0
22 * @link    https://jingga.app
23 * @since   1.0.0
24 */
25class Tag
26{
27    /**
28     * Name.
29     *
30     * @var string
31     * @since 1.0.0
32     */
33    public string $name = '';
34
35    /**
36     * Message.
37     *
38     * @var string
39     * @since 1.0.0
40     */
41    private string $message = '';
42
43    /**
44     * Constructor
45     *
46     * @param string $name Tag name/version
47     *
48     * @since 1.0.0
49     */
50    public function __construct(string $name = '')
51    {
52        $this->name = $name;
53    }
54
55    /**
56     * Get tag message
57     *
58     * @return string
59     *
60     * @since 1.0.0
61     */
62    public function getMessage() : string
63    {
64        return $this->message;
65    }
66
67    /**
68     * Set tag name
69     *
70     * @param string $message Tag message
71     *
72     * @return void
73     *
74     * @since 1.0.0
75     */
76    public function setMessage(string $message) : void
77    {
78        $this->message = $message;
79    }
80
81    /**
82     * Get tag name
83     *
84     * @return string
85     *
86     * @since 1.0.0
87     */
88    public function getName() : string
89    {
90        return $this->name;
91    }
92}