1 | <?php |
||
16 | abstract class CrawlerDiscoverer extends Discoverer implements DiscovererInterface |
||
17 | { |
||
18 | /** @var string */ |
||
19 | protected $selector; |
||
20 | |||
21 | /** |
||
22 | * @param $selector |
||
23 | */ |
||
24 | public function __construct($selector) |
||
28 | |||
29 | abstract protected function getFilteredCrawler(Resource $resource); |
||
30 | |||
31 | /** |
||
32 | * @param Resource $resource |
||
33 | * @return DiscoveredUri[] |
||
34 | */ |
||
35 | public function discover(Resource $resource) |
||
49 | } |
||
50 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@return
doc comment to communicate to implementors of these methods what they are expected to return.