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

FieldDefinition   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 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 FieldDefinition {
13
	public function __construct(
14
		//   // The key that will store the value into database. Mandatory to have this item.
15
		public string $field,
16
		//   // The label that will be displayed. Mandatory
17
		public string $prompt,
18
		//   // The default value when the value isn't provided.
19
		//   // Not mandatory to have this item
20
		public string $default = '',
21
		//   // Default: false. Not mandatory to have this item
22
		public bool $optional = false,
23
	) {
24
	}
25
}
26