Factory   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 4
Bugs 1 Features 0
Metric Value
wmc 3
eloc 7
dl 0
loc 14
ccs 0
cts 6
cp 0
rs 10
c 4
b 1
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPrefix() 0 3 1
A getBaseClass() 0 3 1
A getSuffix() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * SPDX-FileCopyrightText: 2024 Christoph Wurst <[email protected]>
7
 * SPDX-License-Identifier: AGPL-3.0-or-later
8
 */
9
10
namespace OCA\TwoFactorGateway\Provider;
11
12
class Factory extends AFactory {
13
	#[\Override]
14
	protected function getPrefix(): string {
15
		return 'OCA\\TwoFactorGateway\\Provider\\Channel\\';
16
	}
17
18
	#[\Override]
19
	protected function getSuffix(): string {
20
		return 'Provider';
21
	}
22
23
	#[\Override]
24
	protected function getBaseClass(): string {
25
		return AProvider::class;
26
	}
27
}
28