@@ 420-429 (lines=10) @@ | ||
417 | * Iterate all properties and create internal scope reflection class instance if |
|
418 | * at least one property in not public |
|
419 | */ |
|
420 | foreach ($propertiesMetadata as $propertyMetadata) { |
|
421 | if (!$propertyMetadata->isPublic) { |
|
422 | $this->generator |
|
423 | ->comment('Create reflection class for injecting private/protected properties and methods') |
|
424 | ->newLine($reflectionVariable . ' = new \ReflectionClass(\'' . $className . '\');') |
|
425 | ->newLine(); |
|
426 | ||
427 | return true; |
|
428 | } |
|
429 | } |
|
430 | ||
431 | /** |
|
432 | * Iterate all properties and create internal scope reflection class instance if |
|
@@ 435-444 (lines=10) @@ | ||
432 | * Iterate all properties and create internal scope reflection class instance if |
|
433 | * at least one property in not public |
|
434 | */ |
|
435 | foreach ($methodsMetadata as $methodMetadata) { |
|
436 | if (!$methodMetadata->isPublic) { |
|
437 | $this->generator |
|
438 | ->comment('Create reflection class for injecting private/protected properties and methods') |
|
439 | ->newLine($reflectionVariable . ' = new \ReflectionClass(\'' . $className . '\');') |
|
440 | ->newLine(); |
|
441 | ||
442 | return true; |
|
443 | } |
|
444 | } |
|
445 | ||
446 | return false; |
|
447 | } |