<?php
/**
 * FeSubAccount class.
 */

declare(strict_types=1);
namespace FeData\FastEvents\Accounts;

defined( 'ABSPATH' ) || exit;

/**
 * FeSubAccount class.
 */
class FeSubAccount {

	/**
	 * The uuid of the entry.
	 *
	 * @since 2.0
	 * @var string
	 */
	public string $uuid;

	/**
	 * Is the subaccount blocked?
	 *
	 * @since 2.0
	 * @var bool
	 */
	public bool $blocked;

	/**
	 * A comma separated list of event ids.
	 *
	 * @since 2.0
	 * @var string
	 */
	public string $allowed_events;

	/**
	 * List of permissions. Every byte is a 0 or 1 for a specific permission (see 'class-fast-events-auth' for the definition).
	 *
	 * @since 2.0
	 * @var string
	 */
	public string $permission_list;


	/**
	 * Sub Account constructor.
	 *
	 * @since 2.0
	 */
	public function __construct() {
		$this->permission_list = str_repeat( '0', 100 );
	}
}
