src/Core/Helper/Annotate/ReflectedClass.php 1 location
|
@@ 187-193 (lines=7) @@
|
184 |
|
$use .= $tokens[$index++][1]; |
185 |
|
} |
186 |
|
$alias = null; |
187 |
|
if ($tokens[$index][0] == T_AS) { |
188 |
|
$alias = ''; |
189 |
|
$index += 2; |
190 |
|
while (isset($tokens[$index]) && is_array($tokens[$index])) { |
191 |
|
$alias .= $tokens[$index++][1]; |
192 |
|
} |
193 |
|
} |
194 |
|
$this->addUse($use, $alias); |
195 |
|
} |
196 |
|
if (T_CLASS == $tokens[$index][0]) { |
src/Core/Helper/Annotate/AnnotationGenerator.php 1 location
|
@@ 124-129 (lines=6) @@
|
121 |
|
if (!isset($tokens[$index][0])) { |
122 |
|
continue; |
123 |
|
} |
124 |
|
if (T_NAMESPACE === $tokens[$index][0]) { |
125 |
|
$index += 2; // Skip namespace keyword and whitespace |
126 |
|
while (isset($tokens[$index]) && is_array($tokens[$index])) { |
127 |
|
$namespace .= $tokens[$index++][1]; |
128 |
|
} |
129 |
|
} |
130 |
|
if (T_CLASS === $tokens[$index][0]) { |
131 |
|
$index += 2; // Skip class keyword and whitespace |
132 |
|
$class = $namespace.'\\'.$tokens[$index][1]; |