| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 11 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 32 | public function setParent(\Spiral\Core\Container $parent, self $parentScope): void  | 
            ||
| 33 |     { | 
            ||
| 34 | $this->parent = $parent;  | 
            ||
| 35 | $this->parentScope = $parentScope;  | 
            ||
| 36 | |||
| 37 | // Check a scope with the same name is not already registered  | 
            ||
| 38 |         if ($this->scopeName !== null) { | 
            ||
| 39 | $tmp = $this;  | 
            ||
| 40 |             while ($tmp->parentScope !== null) { | 
            ||
| 41 | $tmp = $tmp->parentScope;  | 
            ||
| 42 | $tmp->scopeName !== $this->scopeName ?: throw new NamedScopeDuplicationException($this->scopeName);  | 
            ||
| 43 | }  | 
            ||
| 63 |