| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 28 | public function evaluate(ClassDescription $theClass, Violations $violations): void |
||
| 29 | { |
||
| 30 | $fqcn = FullyQualifiedClassName::fromString($theClass->getFQCN()); |
||
| 31 | if (!$fqcn->classMatches($this->name)) { |
||
| 32 | $violation = Violation::create( |
||
| 33 | $theClass->getFQCN(), |
||
| 34 | $this->describe($theClass)->toString() |
||
| 35 | ); |
||
| 36 | $violations->add($violation); |
||
| 37 | } |
||
| 41 |