HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/StartHook.php.tar
vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/google-listings-and-ads/src/Jobs/StartHook.php000064400000001630151547476700031161 0ustar00var/www<?php
declare( strict_types=1 );

namespace Automattic\WooCommerce\GoogleListingsAndAds\Jobs;

defined( 'ABSPATH' ) || exit;

/**
 * Class StartHook
 *
 * @package Automattic\WooCommerce\GoogleListingsAndAds\Jobs
 */
class StartHook {

	/**
	 * @var string
	 */
	protected $hook;

	/**
	 * @var int
	 */
	protected $argument_count;

	/**
	 * StartHook constructor.
	 *
	 * @param string $hook           The name of an action hook to attach the job's start method to
	 * @param int    $argument_count The number of arguments returned by the specified action hook
	 */
	public function __construct( string $hook, int $argument_count = 0 ) {
		$this->hook           = $hook;
		$this->argument_count = $argument_count;
	}

	/**
	 * @return string
	 */
	public function get_hook(): string {
		return $this->hook;
	}

	/**
	 * @return int
	 */
	public function get_argument_count(): int {
		return $this->argument_count;
	}
}