| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | private function insertSnakRow( SnakRow $snakRow ) { |
||
| 47 | foreach ( $this->snakStores as $snakStore ) { |
||
| 48 | if ( $snakStore->canStore( $snakRow ) ) { |
||
| 49 | $snakStore->storeSnakRow( $snakRow ); |
||
| 50 | return; |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 | throw new RuntimeException( 'Cannot store the snak as there is no SnakStore that can handle it' ); |
||
| 55 | } |
||
| 56 | |||
| 58 |