Total Complexity | 9 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 94.74% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | trait RobotsTxtTrait |
||
9 | { |
||
10 | /** @var RobotsTxt|string (empty string) */ |
||
11 | protected $robotsTxt; |
||
12 | |||
13 | //abstract public function getDomainAndScheme(); |
||
14 | |||
15 | abstract public function getResponse(); |
||
16 | |||
17 | abstract public function url(); |
||
18 | |||
19 | /** |
||
20 | * @return RobotsTxt|string containing the current Robots.txt or NULL if an error occured |
||
21 | * or empty string if robots is empty file |
||
22 | */ |
||
23 | 9 | public function getRobotsTxt() |
|
50 | } |
||
51 | |||
52 | /** |
||
53 | * @param RobotsTxt|string $robotsTxt |
||
54 | * |
||
55 | * @return self |
||
56 | */ |
||
57 | 3 | public function setRobotsTxt($robotsTxt) |
|
64 |