TConfirmationDialog   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 0
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A injectConfirmationDialog() 0 4 1
1
<?php
2
/**
3
 * TConfirmationDialog.php
4
 *
5
 * @copyright      More in license.md
6
 * @license        https://www.ipublikuj.eu
7
 * @author         Adam Kadlec <[email protected]>
8
 * @package        iPublikuj:ConfirmationDialog!
9
 * @subpackage     common
10
 * @since          1.0.0
11
 *
12
 * @date           01.02.15
13
 */
14
15
declare(strict_types = 1);
16
17
namespace IPub\ConfirmationDialog;
18
19
use IPub\ConfirmationDialog\Components;
20
21
/**
22
 * Confirmation control trait
23
 *
24
 * @package        iPublikuj:ConfirmationDialog!
25
 * @subpackage     common
26
 *                 
27
 * @author         Adam Kadlec <[email protected]>
28
 */
29
trait TConfirmationDialog
30
{
31
	/**
32
	 * @var Components\IControl
33
	 */
34
	protected $confirmationDialogFactory;
35
36
	/**
37
	 * @param Components\IControl $confirmationDialogFactory
38
	 * 
39
	 * @return void
40
	 */
41
	public function injectConfirmationDialog(Components\IControl $confirmationDialogFactory) : void
42
	{
43
		$this->confirmationDialogFactory = $confirmationDialogFactory;
44
	}
45
}
46