Completed
Push — master ( fc9cad...73aa8e )
by Jean-Christophe
07:56 queued 03:31
created

JsUtilsComponent::initialize()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 2
eloc 5
nc 2
nop 1
1
<?php
2
3
namespace App\Controller\Component;
4
5
use Ajax\php\cakephp\_JsUtils;
6
use Cake\Controller\Component;
7
use Ajax\Semantic;
8
9
class JsUtilsComponent extends Component {
10
	/**
11
	 * @var Ajax\php\cakephp\_JsUtils
12
	 */
13
	public $jquery;
14
	public function initialize(array $config){
15
		\extract($config);
16
		$this->jquery=new _JsUtils();
17
		if(isset($semantic)){
18
			$this->jquery->semantic(new Semantic());
19
		}
20
	}
21
}