Factory::getBaseClass()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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