/** * Will try to figure out if the passed assertion has a private context or not. * This information will be entered into the assertion which will then be returned. * * @param \TechDivision\PBC\Interfaces\AssertionInterface $assertion The assertion we need the minimal scope for * * @return void */ protected function determineMinimalScope(AssertionInterface $assertion) { // Get the string to check for dynamic properties $assertionString = $assertion->getString(); // Do we have method calls? If so we have at least structure scope $methodCalls = $this->filterMethodCalls($assertionString); if (!empty($methodCalls)) { $assertion->setMinScope('structure'); } // Do we have any attributes? If so we have at least structure scope $attributes = $this->filterAttributes($assertionString); if (!empty($attributes)) { $assertion->setMinScope('structure'); } }