-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCrawlFailed.php
52 lines (44 loc) · 1.2 KB
/
CrawlFailed.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
namespace Spekulatius\SpatieCrawlerToolkit\Events;
use Psr\Http\Message\UriInterface;
use GuzzleHttp\Exception\RequestException;
use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Events\Dispatchable;
class CrawlFailed
{
use Dispatchable, SerializesModels;
/**
* @var string|null
*/
public $identifier;
/**
* @var \Psr\Http\Message\UriInterface
*/
public $url;
/**
* @var \GuzzleHttp\Exception\RequestException
*/
public $requestException;
/**
* @var \Psr\Http\Message\UriInterface|null
*/
public $foundOnUrl;
/**
* @param string|null $identifier
* @param \Psr\Http\Message\UriInterface $url
* @param \GuzzleHttp\Exception\RequestException $requestException
* @param \Psr\Http\Message\UriInterface|null $foundOnUrl
* @return void
*/
public function __construct(
?string $identifier = null,
UriInterface $url,
RequestException $requestException,
?UriInterface $foundOnUrl = null
) {
$this->identifier = $identifier;
$this->url = $url;
$this->requestException = $requestException;
$this->foundOnUrl = $foundOnUrl;
}
}