| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 44 | public function addAspect($aspect) |
|
| 32 | { |
||
| 33 | 44 | $this->aspects[(string)$aspect] = true; |
|
| 34 | 44 | $it = new CompositionIterator($this); |
|
| 35 | 44 | $it->ofType(AspectsInterface::class); |
|
| 36 | 44 | foreach($it as $subDocument) |
|
| 37 | { |
||
| 38 | 8 | AspectManager::addAspect($subDocument, $aspect); |
|
| 39 | } |
||
| 40 | 44 | } |
|
| 41 | |||
| 67 | } |