Completed
Pull Request — master (#1936)
by
unknown
265:30 queued 200:17
created

ConfirmSubscriptionController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 6
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 4 1
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