| 1 |
<?php |
| 2 |
|
| 3 |
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. |
| 4 |
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded |
| 5 |
namespace Yoast\WP\SEO\Task_List\Application\Tasks; |
| 6 |
|
| 7 |
/** |
| 8 |
* Trait for tasks that are about recent content. |
| 9 |
*/ |
| 10 |
trait Recent_Content_Task_Trait { |
| 11 |
|
| 12 |
/** |
| 13 |
* Returns the recency timestamp. |
| 14 |
* |
| 15 |
* @return string |
| 16 |
*/ |
| 17 |
public function get_recency_timestamp(): string { |
| 18 |
return \gmdate( 'Y-m-d H:i:s', \strtotime( '-2 months' ) ); |
| 19 |
} |
| 20 |
} |
| 21 |
|