ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sign.php
Go to the documentation of this file.
1<?php
2
4
6
7class Sign
8{
19 public static function evaluate($number)
20 {
21 try {
22 $number = Helpers::validateNumericNullBool($number);
23 } catch (Exception $e) {
24 return $e->getMessage();
25 }
26
27 return Helpers::returnSign($number);
28 }
29}
An exception for terminatinating execution or to throw for unit testing.
static validateNumericNullBool($number)
Many functions accept null/false/true argument treated as 0/0/1.
Definition: Helpers.php:27