| 1 | <?php |
||
| 4 | final class UnavailableAfter implements directiveInterface |
||
| 5 | { |
||
| 6 | const DIRECTIVE = 'unavailable_after'; |
||
| 7 | const MEANING = 'Do not show this page in search results after the specified date/time.'; |
||
| 8 | |||
| 9 | const DATE_GOOGLE = 'd M Y H:i:s T'; |
||
| 10 | |||
| 11 | private $supportedDateFormats = [ |
||
| 12 | DATE_RFC850, |
||
| 13 | self::DATE_GOOGLE |
||
| 14 | ]; |
||
| 15 | |||
| 16 | private $value; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Constructor |
||
| 20 | * |
||
| 21 | * @param string $rule |
||
| 22 | */ |
||
| 23 | public function __construct($rule) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get directive name |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function getDirective() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get value |
||
| 40 | * |
||
| 41 | * @return string|null |
||
| 42 | */ |
||
| 43 | public function getValue() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Get directive meaning |
||
| 60 | * |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | public function getMeaning() |
||
| 67 | } |
||
| 68 | |||
| 69 |