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

Settings   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
eloc 1
dl 0
loc 13
rs 10
c 2
b 0
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
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