Completed
Push — master ( 55f351...d9189f )
by Jean-Christophe
03:28
created

AjaxTransition::bSlidedown()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
namespace Ajax\service;
3
class AjaxTransition {
4
	public static function none($responseElement,$jqueryDone="html"){
5
		return "$({$responseElement}).{$jqueryDone}( data )";
6
	}
7
8
	public static function fade($responseElement,$jqueryDone="html"){
9
		return "$({$responseElement}).hide().{$jqueryDone}( data ).fadeIn()";
10
	}
11
12
	public static function slide($responseElement,$jqueryDone="html"){
13
		return "$({$responseElement}).hide().{$jqueryDone}( data ).slideDown()";
14
	}
15
16
	public static function bSlidedown($responseElement,$jqueryDone="html"){
17
		return "$({$responseElement}).{$jqueryDone}( data ).transition('slide down in')";
18
	}
19
20
	public static function bScale($responseElement,$jqueryDone="html"){
21
		return "$({$responseElement}).{$jqueryDone}( data ).transition('scale in')";
22
	}
23
}