| Total Complexity | 6 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | class Variable extends AbstractConstraint implements RenderingObserver |
||
| 26 | { |
||
| 27 | use RenderingObserverTrait; |
||
| 28 | |||
| 29 | 50 | public function __construct(string $value, string $match = "any") |
|
| 33 | 50 | } |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $variable |
||
| 37 | * @param stdClass $data |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | 40 | protected function matchForVariable(string $variable, stdClass $data): bool |
|
| 55 |