1 | <?php |
||
26 | trait ValueTypeCheckable |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * Returns if value is a string |
||
31 | * |
||
32 | * @param string $value The value to test |
||
33 | * |
||
34 | * @return bool Is a value a string |
||
35 | */ |
||
36 | 30 | private function isString($value) |
|
40 | |||
41 | /** |
||
42 | * Returns if value is a bool |
||
43 | * |
||
44 | * @param string $value The value to test |
||
45 | * |
||
46 | * @return bool Is a value a bool |
||
47 | */ |
||
48 | 27 | private function isBool($value) |
|
52 | |||
53 | /** |
||
54 | * Returns if value is number |
||
55 | * |
||
56 | * @param string $value The value to test |
||
57 | * |
||
58 | * @return bool Is a value a number |
||
59 | */ |
||
60 | 24 | private function isNumber($value) |
|
64 | |||
65 | /** |
||
66 | * Returns if value is null |
||
67 | * |
||
68 | * @param string $value The value to test |
||
69 | * |
||
70 | * @return bool Is a value null |
||
71 | */ |
||
72 | 24 | private function isNull($value) |
|
76 | |||
77 | /** |
||
78 | * Returns if variable value is a clone, e.g. BOOL = $(BOOL_1) |
||
79 | * |
||
80 | * @param string $value The value to test |
||
81 | * @param array $matches The matches of the variables |
||
82 | * @param bool $quoted_string If the value is in a quoted string |
||
83 | * |
||
84 | * @return bool Is a value null |
||
85 | */ |
||
86 | 6 | private function isVariableClone($value, $matches, $quoted_string) |
|
90 | } |