File tree Expand file tree Collapse file tree 3 files changed +42
-2
lines changed Expand file tree Collapse file tree 3 files changed +42
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,16 @@ class Boolean implements BooleanType
36
36
*/
37
37
private bool $ value ;
38
38
39
+ /**
40
+ * Returns the boolean value.
41
+ *
42
+ * @return bool
43
+ */
44
+ public function getValue (): bool
45
+ {
46
+ return $ this ->value ;
47
+ }
48
+
39
49
/**
40
50
* Boolean constructor.
41
51
*
Original file line number Diff line number Diff line change @@ -36,6 +36,16 @@ class Decimal implements NumeralType
36
36
*/
37
37
private string $ value ;
38
38
39
+ /**
40
+ * Returns the numeric string value.
41
+ *
42
+ * @return string
43
+ */
44
+ public function getValue (): string
45
+ {
46
+ return $ this ->value ;
47
+ }
48
+
39
49
/**
40
50
* Decimal constructor.
41
51
*
@@ -51,6 +61,6 @@ public function __construct($value)
51
61
*/
52
62
public function toQuery (): string
53
63
{
54
- return strval ( $ this ->value ) ;
64
+ return ( string ) $ this ->value ;
55
65
}
56
66
}
Original file line number Diff line number Diff line change @@ -54,12 +54,32 @@ public function __construct(string $value)
54
54
$ this ->value = $ value ;
55
55
}
56
56
57
+ /**
58
+ * Returns the string value.
59
+ *
60
+ * @return string
61
+ */
62
+ public function getValue (): string
63
+ {
64
+ return $ this ->value ;
65
+ }
66
+
67
+ /**
68
+ * Returns whether the string uses double quotes. Single quotes are used if false.
69
+ *
70
+ * @return bool
71
+ */
72
+ public function usesDoubleQuotes (): bool
73
+ {
74
+ return $ this ->useDoubleQuotes ;
75
+ }
76
+
57
77
/**
58
78
* Whether to use double quotes or not.
59
79
*
60
80
* @param bool $useDoubleQuotes
61
81
*/
62
- public function useDoubleQuotes (bool $ useDoubleQuotes = true )
82
+ public function useDoubleQuotes (bool $ useDoubleQuotes = true ): void
63
83
{
64
84
$ this ->useDoubleQuotes = $ useDoubleQuotes ;
65
85
}
You can’t perform that action at this time.
0 commit comments