@@ 498-507 (lines=10) @@ | ||
495 | * Iterate all properties and create internal scope reflection class instance if |
|
496 | * at least one property in not public |
|
497 | */ |
|
498 | foreach ($propertiesMetadata as $propertyMetadata) { |
|
499 | if (!$propertyMetadata->isPublic) { |
|
500 | $this->generator |
|
501 | ->comment('Create reflection class for injecting private/protected properties and methods') |
|
502 | ->newLine($reflectionVariable . ' = new \ReflectionClass(\'' . $className . '\');') |
|
503 | ->newLine(); |
|
504 | ||
505 | return true; |
|
506 | } |
|
507 | } |
|
508 | ||
509 | /** |
|
510 | * Iterate all properties and create internal scope reflection class instance if |
|
@@ 513-522 (lines=10) @@ | ||
510 | * Iterate all properties and create internal scope reflection class instance if |
|
511 | * at least one property in not public |
|
512 | */ |
|
513 | foreach ($methodsMetadata as $methodMetadata) { |
|
514 | if (!$methodMetadata->isPublic) { |
|
515 | $this->generator |
|
516 | ->comment('Create reflection class for injecting private/protected properties and methods') |
|
517 | ->newLine($reflectionVariable . ' = new \ReflectionClass(\'' . $className . '\');') |
|
518 | ->newLine(); |
|
519 | ||
520 | return true; |
|
521 | } |
|
522 | } |
|
523 | ||
524 | return false; |
|
525 | } |