Passed
Push — master ( 489f2e...0cdf36 )
by
unknown
289:17 queued 286:28
created

ConfirmSubscriptionController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\Fundraising\Frontend\App\Controllers\Subscription;
6
7
use WMDE\Fundraising\Frontend\Factories\FunFunFactory;
8
9
class ConfirmSubscriptionController {
10
11
	public function index( FunFunFactory $ffFactory, string $confirmationCode ) {
12
		$useCase = $ffFactory->newConfirmSubscriptionUseCase();
13
		$response = $useCase->confirmSubscription( $confirmationCode );
14
		return $ffFactory->newConfirmSubscriptionHtmlPresenter()->present( $response );
15
	}
16
}
17