@@ -88,6 +88,9 @@ discard block |
||
| 88 | 88 | return $newClass; |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | + /** |
|
| 92 | + * @param string $class |
|
| 93 | + */ |
|
| 91 | 94 | private function hasNoBinding($class, BindInterface $bind) : bool |
| 92 | 95 | { |
| 93 | 96 | $hasMethod = $this->hasBoundMethod($class, $bind); |
@@ -95,6 +98,9 @@ discard block |
||
| 95 | 98 | return ! $bind->getBindings() && ! $hasMethod; |
| 96 | 99 | } |
| 97 | 100 | |
| 101 | + /** |
|
| 102 | + * @param string $class |
|
| 103 | + */ |
|
| 98 | 104 | private function getNewClassName($class, BindInterface $bind) : string |
| 99 | 105 | { |
| 100 | 106 | $newClass = sprintf('%s_%s', str_replace('\\', '_', $class), $bind->toString('')); |
@@ -115,6 +121,9 @@ discard block |
||
| 115 | 121 | return $hasMethod; |
| 116 | 122 | } |
| 117 | 123 | |
| 124 | + /** |
|
| 125 | + * @param string $newClass |
|
| 126 | + */ |
|
| 118 | 127 | private function includeGeneratedCode($newClass, \ReflectionClass $sourceClass, string $file, BindInterface $bind) |
| 119 | 128 | { |
| 120 | 129 | $code = $this->codeGen->generate($newClass, $sourceClass, $bind); |