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/TosAccepted.php.tar
uyarreklam.com.tr/httpdocs/wp-content/plugins/google-listings-and-ads/src/Value/TosAccepted.php000064400000001712151550153050031601 0ustar00var/www/vhosts<?php
declare( strict_types=1 );

namespace Automattic\WooCommerce\GoogleListingsAndAds\Value;

defined( 'ABSPATH' ) || exit;

/**
 * Class TosAccepted
 *
 * @package Automattic\WooCommerce\GoogleListingsAndAds\Value
 */
class TosAccepted implements ValueInterface {

	/**
	 * @var bool
	 */
	protected $accepted;

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

	/**
	 * TosAccepted constructor.
	 *
	 * @param bool   $accepted
	 * @param string $message
	 */
	public function __construct( bool $accepted, string $message = '' ) {
		$this->accepted = $accepted;
		$this->message  = $message;
	}

	/**
	 * Get the value of the object.
	 *
	 * @return mixed
	 */
	public function get(): array {
		return [
			'accepted' => $this->accepted,
			'message'  => $this->message,
		];
	}

	/**
	 * @return bool
	 */
	public function accepted(): bool {
		return $this->accepted;
	}

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