| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 44 | 28 | public function createChildScopeFor(Scope $parentScopeInstance, ResourceInterface $resource, $scopeIdentifier = null) |
|
| 45 | { |
||
| 46 | 28 | $scopeInstance = $this->createScopeFor($resource, $scopeIdentifier); |
|
| 47 | |||
| 48 | // This will be the new children list of parents (parents parents, plus the parent) |
||
| 49 | 28 | $scopeArray = $parentScopeInstance->getParentScopes(); |
|
| 50 | 28 | $scopeArray[] = $parentScopeInstance->getScopeIdentifier(); |
|
| 51 | |||
| 52 | 28 | $scopeInstance->setParentScopes($scopeArray); |
|
| 53 | |||
| 54 | |||
| 55 | 28 | return $scopeInstance; |
|
| 56 | } |
||
| 57 | } |
||
| 58 |