Factory   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getBaseClass() 0 3 1
A getPrefix() 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\Gateway;
11
12
use OCA\TwoFactorGateway\Provider\AFactory;
13
14
/** @extends AFactory<AGateway> */
15
class Factory extends AFactory {
16 7
	#[\Override]
17
	protected function getPrefix(): string {
18 7
		return 'OCA\\TwoFactorGateway\\Provider\\Channel\\';
19
	}
20
21 7
	#[\Override]
22
	protected function getSuffix(): string {
23 7
		return 'Gateway';
24
	}
25
26 6
	#[\Override]
27
	protected function getBaseClass(): string {
28 6
		return AGateway::class;
29
	}
30
}
31