Server : LiteSpeed
System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User : gazetufm ( 1431)
PHP Version : 8.1.35
Disable Function : NONE
Directory :  /home2/gazetufm/bleje.net/wp-content/plugins/wpforms-lite/src/Emails/Summaries/Slot/

📁 Create New:
⬆️ Upload File:
Current Dir [ Writable ] Root [ Writable ]


OR Upload from URL:
URL: Save as:

📄 File: BlockState.php

Path: //home2/gazetufm/bleje.net/wp-content/plugins/wpforms-lite/src/Emails/Summaries/Slot/BlockState.php

Size: 940 B

Permissions: 0644

<?php

namespace WPForms\Emails\Summaries\Slot;

/**
 * Block state value object: whether it renders, and which variant.
 *
 * @since 2.0.3
 */
class BlockState {

	/**
	 * Whether the block renders.
	 *
	 * @since 2.0.3
	 *
	 * @var bool
	 */
	private $visible;

	/**
	 * Template variant.
	 *
	 * @since 2.0.3
	 *
	 * @var string
	 */
	private $variant;

	/**
	 * Constructor.
	 *
	 * @since 2.0.3
	 *
	 * @param bool   $visible Whether the block renders.
	 * @param string $variant Template variant.
	 */
	public function __construct( bool $visible, string $variant = '' ) {

		$this->visible = $visible;
		$this->variant = $variant;
	}

	/**
	 * Whether the block renders.
	 *
	 * @since 2.0.3
	 *
	 * @return bool
	 */
	public function is_visible(): bool {

		return $this->visible;
	}

	/**
	 * Template variant.
	 *
	 * @since 2.0.3
	 *
	 * @return string
	 */
	public function get_variant(): string {

		return $this->variant;
	}
}

← Back to Directory Edit File 🔒 Chmod

WP File Manager