Skip to content

Commit b3545a6

Browse files
committed
Refactoring
1 parent 17bce54 commit b3545a6

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/XRobotsTagParser/Directives/Generic.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@
99
final class Generic implements DirectiveInterface
1010
{
1111
/**
12-
* Current directive
12+
* Directive
1313
* @param string
1414
*/
1515
protected $directive;
1616

17+
/**
18+
* Rule string
19+
* @param string
20+
*/
21+
protected $rule;
22+
1723
/**
1824
* Constructor
1925
*
@@ -23,6 +29,7 @@ final class Generic implements DirectiveInterface
2329
public function __construct($directive, $rule)
2430
{
2531
$this->directive = mb_strtolower($directive);
32+
$this->rule = $rule;
2633
}
2734

2835
/**

src/XRobotsTagParser/RobotsTagInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface RobotsTagInterface
2929
const DIRECTIVE_UNAVAILABLE_AFTER = 'unavailable_after';
3030

3131
/**
32-
* Directive meanings
32+
* Directives and meanings
3333
* @link https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives
3434
*/
3535
const DIRECTIVES = [

0 commit comments

Comments
 (0)