| 1 | <?php |
||
| 9 | final class UnavailableAfter implements DirectiveInterface |
||
| 10 | { |
||
| 11 | const DIRECTIVE = 'unavailable_after'; |
||
| 12 | const MEANING = 'Do not show this page in search results after the specified date/time.'; |
||
| 13 | |||
| 14 | const DATE_GOOGLE = 'd M Y H:i:s T'; |
||
| 15 | |||
| 16 | private $supportedDateFormats = [ |
||
| 17 | DATE_RFC850, |
||
| 18 | self::DATE_GOOGLE |
||
| 19 | ]; |
||
| 20 | |||
| 21 | private $value; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Constructor |
||
| 25 | * |
||
| 26 | * @param string $rule |
||
| 27 | */ |
||
| 28 | public function __construct($rule) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Get directive name |
||
| 35 | * |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function getDirective() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get value |
||
| 45 | * |
||
| 46 | * @return string|null |
||
| 47 | */ |
||
| 48 | public function getValue() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Get directive meaning |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | public function getMeaning() |
||
| 72 | } |
||
| 73 | |||
| 74 |