| 1 | <?php |
||
| 10 | class Tag |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $name; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $value; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var null|string |
||
| 24 | */ |
||
| 25 | protected $description; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $name |
||
| 29 | * @param string $value |
||
| 30 | * @param null|string $description |
||
| 31 | */ |
||
| 32 | 2 | public function __construct(string $name, string $value, string $description = null) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | 2 | public function name(): string |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | 2 | public function value(): string |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return null|string |
||
| 57 | */ |
||
| 58 | 2 | public function description(): ?string |
|
| 62 | } |
||
| 63 |