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

CrawlQueue

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 17
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
add() 0 1 ?
has() 0 1 ?
hasPendingUrls() 0 1 ?
getUrlById() 0 1 ?
getPendingUrl() 0 1 ?
hasAlreadyBeenProcessed() 0 1 ?
markAsProcessed() 0 1 ?
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