Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
Method.TestComputed.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * Ooo Layout test
8  *
9  * @author Anakeen
10  *
11  * @package Dcp\Pu
12  */
13 /**
14  */
15 /**
16  */
17 /**
18  * @begin-method-ignore
19  * this part will be deleted when construct document class until end-method-ignore
20  */
21 class _TST_FAMILYCOMPUTED extends Doc
22 {
23  /**
24  * @end-method-ignore
25  */
26  public function isOne()
27  {
28  return 1;
29  }
30 
31  public function oneMore($x)
32  {
33  return intval($x) + 1;
34  }
35 
36  public function itself($x)
37  {
38  return $x;
39  }
40 
41  public function isNull($x = null)
42  {
43  if ($x === null) return "NULL";
44  return $x;
45  }
46 
47  public function simpleAdd()
48  {
49  $tx = func_get_args();
50 
51  return array_sum($tx);
52  }
53 
54  public function simpleCount(array $t)
55  {
56  return count($t);
57  }
58  public function bracketConcat()
59  {
60  $tx = func_get_args();
61 
62  return '[' . implode('][', $tx) . ']';
63  }
64  /**
65  * @begin-method-ignore
66  * this part will be deleted when construct document class until end-method-ignore
67  */
68 }
69 /**
70  * @end-method-ignore
71  */
72 ?>
← centre documentaire © anakeen