Completed
Push — master ( 409900...f20dfb )
by Jean-Christophe
03:24
created

GenericComponent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getScript() 0 10 2
1
<?php
2
3
namespace Ajax\common\components;
4
5
use Ajax\common\components\SimpleExtComponent;
6
7
class GenericComponent extends SimpleExtComponent {
8
9
	/*
10
	 * (non-PHPdoc)
11
	 * @see \Ajax\common\components\SimpleExtComponent::getScript()
12
	 */
13
	public function getScript() {
14
		$this->jquery_code_for_compile=array ();
15
		foreach ( $this->jsCodes as $jsCode ) {
16
			$this->jquery_code_for_compile []=$jsCode->compile(array (
17
					"identifier" => $this->attachTo
18
			));
19
		}
20
		$this->compileEvents();
21
		return $this->compileJQueryCode();
22
	}
23
}