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