| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | abstract class AbstractTag implements TagInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $name; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Class constructor. |
||
| 21 | * |
||
| 22 | * @param string $name Tag name |
||
| 23 | */ |
||
| 24 | 119 | public function __construct(string $name) |
|
| 25 | { |
||
| 26 | 119 | $this->name = $name; |
|
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get the tag name |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | 26 | public function getName(): string |
|
| 37 | } |
||
| 38 | } |
||
| 39 |