|
@@ 392-403 (lines=12) @@
|
| 389 |
|
* Iterate all properties and create internal scope reflection class instance if |
| 390 |
|
* at least one property in not public |
| 391 |
|
*/ |
| 392 |
|
foreach ($propertiesMetadata as $propertyMetadata) { |
| 393 |
|
if (!$propertyMetadata->isPublic) { |
| 394 |
|
$this->generator |
| 395 |
|
->comment('Create reflection class for injecting private/protected properties and methods') |
| 396 |
|
->newLine($reflectionVariable . ' = new \ReflectionClass(\'' . $className . '\');') |
| 397 |
|
->newLine(); |
| 398 |
|
|
| 399 |
|
$reflectionClassCreated = true; |
| 400 |
|
|
| 401 |
|
break; |
| 402 |
|
} |
| 403 |
|
} |
| 404 |
|
|
| 405 |
|
/** |
| 406 |
|
* Iterate all properties and create internal scope reflection class instance if |
|
@@ 410-419 (lines=10) @@
|
| 407 |
|
* at least one property in not public |
| 408 |
|
*/ |
| 409 |
|
if (!$reflectionClassCreated) { |
| 410 |
|
foreach ($methodsMetadata as $methodMetadata) { |
| 411 |
|
if (!$methodMetadata->isPublic) { |
| 412 |
|
$this->generator |
| 413 |
|
->comment('Create reflection class for injecting private/protected properties and methods') |
| 414 |
|
->newLine($reflectionVariable . ' = new \ReflectionClass(\'' . $className . '\');') |
| 415 |
|
->newLine(); |
| 416 |
|
|
| 417 |
|
break; |
| 418 |
|
} |
| 419 |
|
} |
| 420 |
|
} |
| 421 |
|
} |
| 422 |
|
|