DelayInterface
last analyzed

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
getValue() 0 1 ?
getBaseUri() 0 1 ?
getUserAgent() 0 1 ?
handle() 0 1 ?
1
<?php
2
/**
3
 * vipnytt/RobotsTxtParser
4
 *
5
 * @link https://github.com/VIPnytt/RobotsTxtParser
6
 * @license https://github.com/VIPnytt/RobotsTxtParser/blob/master/LICENSE The MIT License (MIT)
7
 */
8
9
namespace vipnytt\RobotsTxtParser\Client\Directives;
10
11
use vipnytt\RobotsTxtParser\Client\Delay;
12
13
/**
14
 * Interface DelayInterface
15
 *
16
 * @package vipnytt\RobotsTxtParser\Client\Directives
17
 */
18
interface DelayInterface
19
{
20
    /**
21
     * Get value
22
     *
23
     * @return float|int
24
     */
25
    public function getValue();
26
27
    /**
28
     * Get base uri
29
     *
30
     * @return string
31
     */
32
    public function getBaseUri();
33
34
    /**
35
     * Get User-agent string
36
     *
37
     * @return string
38
     */
39
    public function getUserAgent();
40
41
    /**
42
     * Handle delay
43
     *
44
     * @param Delay\ManageInterface $handler
45
     * @return Delay\BaseInterface
46
     */
47
    public function handle(Delay\ManageInterface $handler);
48
}
49