File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99final 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 /**
Original file line number Diff line number Diff 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 = [
You can’t perform that action at this time.
0 commit comments