| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 37 | public function evaluate(ClassDescription $theClass, Violations $violations): void |
||
| 38 | { |
||
| 39 | $fqcn = FullyQualifiedClassName::fromString($theClass->getFQCN()); |
||
| 40 | if (! $fqcn->classMatches($this->name)) { |
||
| 41 | $violation = Violation::create( |
||
| 42 | $theClass->getFQCN(), |
||
| 43 | $this->describe($theClass)->toString() |
||
| 44 | ); |
||
| 45 | $violations->add($violation); |
||
| 46 | } |
||
| 49 |