1 | <?php |
||
17 | final class Utils |
||
18 | { |
||
19 | /** |
||
20 | * Includes the given file and returns the results. |
||
21 | * |
||
22 | * @param string The path to the file |
||
23 | * @return mixed The results of the include |
||
24 | * @since 0.1.0 |
||
25 | */ |
||
26 | public static function load($file = null) |
||
30 | |||
31 | /** |
||
32 | * Takes a value and checks if it's a Closure or not, if it's a Closure it |
||
33 | * will return the result of the closure, if not, it will simply return the |
||
34 | * value. |
||
35 | * |
||
36 | * @param mixed $var The value to get |
||
37 | * @return mixed |
||
38 | * @since 0.1.0 |
||
39 | */ |
||
40 | public static function checkValue($var = null) |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | * @since 0.1.2 |
||
48 | */ |
||
49 | public function __toString() |
||
53 | } |
||
54 | |||
56 |