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

ModuleEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 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
}