Completed
Push — master ( 84255c...a7d7e4 )
by Thomas
14:38
created

ModuleEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getModule() 0 3 1
1
<?php
2
namespace keeko\core\events;
3
4
use Symfony\Component\EventDispatcher\Event;
5
use keeko\core\model\Module;
6
7
class ModuleEvent extends Event {
8
	
9
	const INSTALLED = 'core.module.installed';
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
10
	const UNINSTALLED = 'core.module.uninstalled';
11
	const UPDATED = 'core.module.updated';
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
12
	const ACTIVATED = 'core.module.activated';
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
13
	const DEACTIVATED = 'core.module.deactivated';
14
15
	/** @var Module */
16
	private $module;
17
	
18
	public function __construct(Module $module) {
19
		$this->module = $module;
20
	}
21
	
22
	/**
23
	 * @return Module
24
	 */
25
	public function getModule() {
26
		return $this->module;
27
	}
28
}