| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | 72 | public function removeAspect($aspect) |
|
| 49 | { |
||
| 50 | 72 | unset($this->aspects[(string)$aspect]); |
|
| 51 | 72 | assert($this instanceof AnnotatedInterface); |
|
| 52 | 72 | $it = new CompositionIterator($this); |
|
| 53 | 72 | $it->ofType(AspectsInterface::class); |
|
| 54 | 72 | foreach($it as $subDocument) |
|
| 55 | { |
||
| 56 | 11 | AspectManager::removeAspect($subDocument, $aspect); |
|
| 57 | } |
||
| 58 | 72 | } |
|
| 59 | |||
| 70 | } |