| Server IP : 35.235.84.95 / Your IP : 216.73.216.49 Web Server : Apache System : Linux instance-1 6.1.0-33-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.133-1 (2025-04-10) x86_64 User : vanessavaladezrealty ( 10093) PHP Version : 8.0.30 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/vanessavaladezrealty.com/httpdocs/wp-content/plugins/wp-crontrol/src/ |
Upload File : |
<?php
/**
* Request handler.
*/
namespace Crontrol;
/**
* Class Request
*/
class Request {
/**
* Description.
*
* @var string
*/
public $args = '';
/**
* Description.
*
* @var string
*/
public $next_run_date_local = '';
/**
* Description.
*
* @var string
*/
public $next_run_date_local_custom_date = '';
/**
* Description.
*
* @var string
*/
public $next_run_date_local_custom_time = '';
/**
* Description.
*
* @var string
*/
public $schedule = '';
/**
* Description.
*
* @var string
*/
public $hookname = '';
/**
* Description.
*
* @var string
*/
public $hookcode = '';
/**
* Description.
*
* @var string
*/
public $eventname = '';
/**
* Description.
*
* @var string
*/
public $url = '';
/**
* Description.
*
* @var string
*/
public $method = '';
/**
* Description.
*
* @var string
*/
public $original_hookname = '';
/**
* Description.
*
* @var string
*/
public $original_sig = '';
/**
* Description.
*
* @var string
*/
public $original_next_run_utc = '';
/**
* Initializes a Request object from properties.
*
* @param array<string,mixed> $props Properties.
* @return Request A new Request object.
*/
public static function init( array $props ): Request {
$request = new self();
foreach ( $props as $name => $value ) {
$prop = (string) preg_replace( '#^crontrol_#', '', $name );
if ( property_exists( $request, $prop ) ) {
$request->$prop = $value;
}
}
return $request;
}
}