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

AjaxTransition   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 21
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A none() 0 3 1
A fade() 0 3 1
A slide() 0 3 1
A bSlidedown() 0 3 1
A bScale() 0 3 1
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
}