1<?php 2 3/* 4 * This file is part of the Symfony package. 5 * 6 * (c) Fabien Potencier <fabien@symfony.com> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12namespace Symfony\Component\Yaml\Tag; 13 14/** 15 * @author Nicolas Grekas <p@tchwork.com> 16 * @author Guilhem N. <egetick@gmail.com> 17 */ 18final class TaggedValue 19{ 20 private $tag; 21 private $value; 22 23 public function __construct(string $tag, $value) 24 { 25 $this->tag = $tag; 26 $this->value = $value; 27 } 28 29 public function getTag(): string 30 { 31 return $this->tag; 32 } 33 34 public function getValue() 35 { 36 return $this->value; 37 } 38} 39