Listener   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setEvent() 0 3 1
A getEvent() 0 3 1
A setFunction() 0 3 1
A setScope() 0 3 1
A setElement() 0 3 1
A setParam() 0 3 1
1
<?php
2
/**
3
 * ExtForms - Listener.php
4
 *
5
 * Initial version by: MisterX
6
 * Initial version created on: 31.07.2015
7
 */
8
9
namespace Ext\Event;
10
11
12
use Ext\Base;
13
14
class Listener extends Base
15
{
16
	protected $ignore = array('event');
17
18
	public function setEvent($event){
19
		return $this->setProperty('event',$event);
20
	}
21
22
	public function getEvent(){
23
		return $this->getProperty('event');
24
	}
25
26
	public function setFunction($function){
27
		return $this->setProperty('fn',$function);
28
	}
29
30
	public function setScope($scope){
31
		return $this->setProperty('scope',$scope);
32
	}
33
34
	public function setElement($element){
35
		return $this->setProperty('element',$element);
36
	}
37
38
	public function setParam($config){
39
		return $this->setProperty('param',$config);
40
	}
41
}