Completed
Push — master ( 9fed17...55f351 )
by Jean-Christophe
03:12
created

JQueryAjaxEffect   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 13
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A none() 0 3 1
A fade() 0 3 1
A slide() 0 3 1
1
<?php
2
namespace Ajax\service;
3
class JQueryAjaxEffect {
4
	public static function none($responseElement,$jqueryDone="html"){
5
		return "\t$({$responseElement}).{$jqueryDone}( data );\n";
6
	}
7
8
	public static function fade($responseElement,$jqueryDone="html"){
9
		return "\t$({$responseElement}).hide().{$jqueryDone}( data ).fadeIn();\n";
10
	}
11
12
	public static function slide($responseElement,$jqueryDone="html"){
13
		return "\t$({$responseElement}).hide().{$jqueryDone}( data ).slideDown();\n";
14
	}
15
}