Passed
Pull Request — master (#686)
by Vitor
04:24
created

Settings::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 0
dl 0
loc 12
rs 10
c 2
b 0
f 1
cc 1
nc 1
nop 5
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
7
 * SPDX-License-Identifier: AGPL-3.0-or-later
8
 */
9
10
namespace OCA\TwoFactorGateway\Provider;
11
12
class Settings {
13
	public function __construct(
14
		public string $name,
15
		public ?string $id = null,
16
		public bool $allowMarkdown = false,
17
		public string $instructions = '',
18
		/**
19
		 * List of fields to be filled by system administrators when configuring the gateway.
20
		 *
21
		 * @var FieldDefinition[]
22
		 */
23
		public array $fields = [],
24
	) {
25
	}
26
}
27