Completed
Pull Request — master (#87)
by Peter
01:15
created

CrawlQueue::markAsProcessed()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
namespace Spatie\Crawler;
4
5
6
interface CrawlQueue
7
{
8
    public function add(CrawlUrl $url): self;
9
10
    public function has($crawlUrl): bool;
11
12
    public function hasPendingUrls(): bool;
13
14
    public function getUrlById(int $id): CrawlUrl;
15
16
    /** @return \Spatie\Crawler\CrawlUrl|null */
17
    public function getPendingUrl();
18
19
    public function hasAlreadyBeenProcessed(CrawlUrl $url);
20
21
    public function markAsProcessed(CrawlUrl $crawlUrl);
22
}
23