| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class StackOverflowWebPageSource extends WebPageSource |
||
| 14 | { |
||
| 15 | public function __construct ( string $url ) |
||
| 16 | { |
||
| 17 | parent::__construct( $url ); |
||
| 18 | |||
| 19 | $this->handler = new StackOverflowWebPageHandler( $url ); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Function that returns the results from the given StackOverflow URL. |
||
| 24 | * |
||
| 25 | * @return array |
||
| 26 | * @throws SourceWatcherException |
||
| 27 | */ |
||
| 28 | public function getResults () : array |
||
| 41 | } |
||
| 42 | } |
||
| 43 |