| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | final class Variable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * This is the whole variable value, i.e. %PHP% |
||
| 11 | */ |
||
| 12 | private string $value; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * This is the actual name of the variable, i.e. PHP for a variable value like %PHP% |
||
| 16 | */ |
||
| 17 | private string $name; |
||
| 18 | |||
| 19 | 1 | public function __construct(string $value, string $name) |
|
| 23 | 1 | } |
|
| 24 | |||
| 25 | 1 | public function getValue(): string |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | public function getName(): string |
|
| 35 |