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

Settings   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

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 6
	public function __construct(
14
		public string $name,
15
		public string $id = '',
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 6
	}
26
}
27