Completed
Push — master ( b7a7dd...b1fd35 )
by Jean-Christophe
03:34
created
Ajax/service/JReflection.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -3,11 +3,18 @@  discard block
 block discarded – undo
3 3
 namespace Ajax\service;
4 4
 
5 5
 class JReflection {
6
+
7
+	/**
8
+	 * @param \Ajax\common\html\HtmlCollection $object
9
+	 */
6 10
 	public static function shortClassName($object){
7 11
 		$classNameWithNamespace = get_class($object);
8 12
 		return substr($classNameWithNamespace, strrpos($classNameWithNamespace, '\\')+1);
9 13
 	}
10 14
 
15
+	/**
16
+	 * @param string $classname
17
+	 */
11 18
 	public static function jsonObject($classname){
12 19
 		$object=new $classname();
13 20
 		$class = new \ReflectionClass($classname);
@@ -29,10 +36,16 @@  discard block
 block discarded – undo
29 36
 		return $object;
30 37
 	}
31 38
 
39
+	/**
40
+	 * @param string $callback
41
+	 */
32 42
 	public static function callMethod($object,$callback,array $values){
33 43
 		return \call_user_func_array([$object,$callback],$values);
34 44
 	}
35 45
 
46
+	/**
47
+	 * @param string $propertyName
48
+	 */
36 49
 	public static function getterName($propertyName,$prefix="get"){
37 50
 		return $prefix.\ucfirst($propertyName);
38 51
 	}
Please login to merge, or discard this patch.