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

JQueryAjaxEffect::fade()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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