Total Complexity | 2 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | trait Flow |
||
11 | { |
||
12 | /** |
||
13 | * IF - If/else construct |
||
14 | * |
||
15 | * @param bool $condition The boolean condition which determines which result should be returned. |
||
16 | * @param mixed $onTrue The result to be returned if the condition is true. |
||
17 | * @param mixed $onFalse The condition to be returned if the condition is false. |
||
18 | * @return mixed Either the onTrue or onFalse result is returned, depending on the value of the condition. |
||
19 | */ |
||
20 | 1 | public static function mysql_if($condition, $onTrue, $onFalse) |
|
25 |