Completed
Push — master ( 76871a...6aacc9 )
by Freek
01:10
created

EmptyCrawlObserver::willCrawl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
3
namespace Spatie\Crawler;
4
5
class EmptyCrawlObserver implements CrawlObserver
6
{
7
8
    /**
9
     * Called when the crawler will crawl the url.
10
     *
11
     * @param \Spatie\Crawler\Url $url
12
     *
13
     * @return void
14
     */
15
    public function willCrawl(Url $url)
16
    {
17
18
    }
19
20
    /**
21
     * Called when the crawler has crawled the given url.
22
     *
23
     * @param \Spatie\Crawler\Url $url
24
     * @param \Psr\Http\Message\ResponseInterface|null $response
25
     * @param \Spatie\Crawler\Url $foundOnUrl
26
     *
27
     * @return void
28
     */
29
    public function hasBeenCrawled(Url $url, $response, Url $foundOnUrl = null)
30
    {
31
32
    }
33
34
    /**
35
     * Called when the crawl has ended.
36
     *
37
     * @return void
38
     */
39
    public function finishedCrawling()
40
    {
41
42
    }
43
}