# fapi-member/2.2.36/src/Model/Settings.php

FAPI Member, version 2.2.36. 62 lines.

- Page: https://pluginprobe.com/plugins/fapi-member/2.2.36/code/src/Model/Settings.php
- Raw: https://pluginprobe.com/plugins/fapi-member/2.2.36/raw/src/Model/Settings.php
- Modified: 2026-08-26T11:19:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fapi-member/2.2.36/code/src/Model/Settings.php#L10-L20`.

```php
<?php

namespace FapiMember\Model;

use FapiMember\Model\Enums\Keys\SettingsKey;
use FapiMember\Library\SmartEmailing\Types\IntType;

class Settings
{
	private int|null $timeLockedPageId;
	private int|null $loginPageId;
	private int|null $dashboardPageId;

	public function __construct(array $data)
	{
		$this->timeLockedPageId = IntType::extractOrNull($data, SettingsKey::TIME_LOCKED_PAGE);
		$this->loginPageId = IntType::extractOrNull($data, SettingsKey::LOGIN_PAGE);
		$this->dashboardPageId = IntType::extractOrNull($data, SettingsKey::DASHBOARD_PAGE);
	}

	public function getTimeLockedPageId(): int|null
	{
		return $this->timeLockedPageId;
	}

	public function getLoginPageId(): int|null
	{
		return $this->loginPageId;
	}

	public function getDashboardPageId(): int|null
	{
		return $this->dashboardPageId;
	}

	public function setTimeLockedPageId(int|null $timeLockedPageId): void
	{
		$this->timeLockedPageId = $timeLockedPageId;
	}

	public function setLoginPageId(int|null $loginPageId): void
	{
		$this->loginPageId = $loginPageId;
	}

	public function setDashboardPageId(int|null $dashboardPageId): void
	{
		$this->dashboardPageId = $dashboardPageId;
	}

	/** @return array<string> */
	public function toArray(): array
	{
		return [
			SettingsKey::TIME_LOCKED_PAGE => $this->timeLockedPageId,
			SettingsKey::LOGIN_PAGE => $this->loginPageId,
			SettingsKey::DASHBOARD_PAGE => $this->dashboardPageId,
		];
	}

}

```
