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

Settings::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
dl 0
loc 12
ccs 1
cts 1
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 5
crap 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