Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
UploadBaseFactory | n/a |
0 / 0 |
n/a |
0 / 0 |
2 | n/a |
0 / 0 |
|||
__construct | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | |||||
newValidatingUploadBase | n/a |
0 / 0 |
n/a |
0 / 0 |
1 |
1 | <?php |
2 | |
3 | namespace FileImporter\Services\UploadBase; |
4 | |
5 | use MediaWiki\Linker\LinkTarget; |
6 | use Psr\Log\LoggerInterface; |
7 | |
8 | /** |
9 | * @license GPL-2.0-or-later |
10 | * @author Addshore |
11 | * |
12 | * @codeCoverageIgnore |
13 | */ |
14 | class UploadBaseFactory { |
15 | |
16 | private LoggerInterface $logger; |
17 | |
18 | public function __construct( LoggerInterface $logger ) { |
19 | $this->logger = $logger; |
20 | } |
21 | |
22 | /** |
23 | * @param LinkTarget $targetTitle |
24 | * @param string $tempPath |
25 | */ |
26 | public function newValidatingUploadBase( LinkTarget $targetTitle, $tempPath ): ValidatingUploadBase { |
27 | return new ValidatingUploadBase( $targetTitle, $tempPath, $this->logger ); |
28 | } |
29 | |
30 | } |