| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function fetchPage( string $pageName, string $fetchMode ): string { |
||
| 24 | if ( $this->cache->contains( $pageName ) ) { |
||
| 25 | return $this->cache->fetch( $pageName ); |
||
| 26 | } |
||
| 27 | |||
| 28 | $content = $this->pageRetriever->fetchPage( $pageName, $fetchMode ); |
||
| 29 | |||
| 30 | $this->cache->save( $pageName, $content ); |
||
| 31 | |||
| 32 | return $content; |
||
| 33 | } |
||
| 34 | |||
| 36 |