| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function make(ReflectionClass $reflection, ?string $namespace = null): string |
||
| 24 | { |
||
| 25 | $hash = hash('sha256', $reflection->name . $reflection->getFileName()); |
||
| 26 | |||
| 27 | $name = "{$reflection->getShortName()}Proxy_$hash"; |
||
| 28 | if ($namespace !== null) { |
||
| 29 | return "$namespace\\$name"; |
||
| 30 | } |
||
| 31 | |||
| 32 | return $name; |
||
| 33 | } |
||
| 34 | } |
||
| 35 |