| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | 1 | public function writeXml(XMLArray $XMLArray): void |
|
| 41 | { |
||
| 42 | 1 | $artistNode = $XMLArray->start( |
|
| 43 | 1 | 'artist', |
|
| 44 | 1 | $this->artist, |
|
| 45 | 1 | ); |
|
| 46 | |||
| 47 | 1 | foreach ($this->albums as $album) { |
|
| 48 | 1 | $artistNode->add( |
|
| 49 | 1 | 'album', |
|
| 50 | 1 | null, |
|
| 51 | 1 | $album |
|
| 52 | 1 | ); |
|
| 53 | } |
||
| 54 | |||
| 55 | 1 | $artistNode->end(); |
|
| 56 | } |
||
| 69 |