|
@@ 423-439 (lines=17) @@
|
| 420 |
|
// Do we have method calls? |
| 421 |
|
$methodCalls = $this->filterMethodCalls($assertionString); |
| 422 |
|
|
| 423 |
|
if (!empty($methodCalls)) { |
| 424 |
|
// Iterate over all method calls and check if they are private |
| 425 |
|
foreach ($methodCalls as $methodCall) { |
| 426 |
|
// Get the function definition, but do not get recursive conditions |
| 427 |
|
$functionDefinition = $this->currentDefinition->getFunctionDefinitions()->get($methodCall); |
| 428 |
|
|
| 429 |
|
// If we found something private we can end here |
| 430 |
|
if ($functionDefinition instanceof FunctionDefinition && |
| 431 |
|
$functionDefinition->getVisibility() === 'private' |
| 432 |
|
) { |
| 433 |
|
// Set the private context to true and return it |
| 434 |
|
$assertion->setPrivateContext(true); |
| 435 |
|
|
| 436 |
|
return; |
| 437 |
|
} |
| 438 |
|
} |
| 439 |
|
} |
| 440 |
|
|
| 441 |
|
// Do we have any attributes? |
| 442 |
|
$attributes = $this->filterAttributes($assertionString); |
|
@@ 444-459 (lines=16) @@
|
| 441 |
|
// Do we have any attributes? |
| 442 |
|
$attributes = $this->filterAttributes($assertionString); |
| 443 |
|
|
| 444 |
|
if (!empty($attributes)) { |
| 445 |
|
// Iterate over all attributes and check if they are private |
| 446 |
|
foreach ($attributes as $attribute) { |
| 447 |
|
$attributeDefinition = $this->currentDefinition->getAttributeDefinitions()->get($attribute); |
| 448 |
|
|
| 449 |
|
// If we found something private we can end here |
| 450 |
|
if ($attributeDefinition instanceof AttributeDefinition && |
| 451 |
|
$attributeDefinition->getVisibility() === 'private' |
| 452 |
|
) { |
| 453 |
|
// Set the private context to true and return it |
| 454 |
|
$assertion->setPrivateContext(true); |
| 455 |
|
|
| 456 |
|
return; |
| 457 |
|
} |
| 458 |
|
} |
| 459 |
|
} |
| 460 |
|
} |
| 461 |
|
|
| 462 |
|
/** |