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

CrawlQueue::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
CrawlQueue::getPendingUrl() 0 1 ?
CrawlQueue::hasAlreadyBeenProcessed() 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