File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
src/Illuminate/Database/Query Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 5
5
use Illuminate \Contracts \Database \Query \Expression as ExpressionContract ;
6
6
use Illuminate \Database \Grammar ;
7
7
8
+ /**
9
+ * @template TValue of string|int|float
10
+ */
8
11
class Expression implements ExpressionContract
9
12
{
10
- /**
11
- * The value of the expression.
12
- *
13
- * @var string|int|float
14
- */
15
- protected $ value ;
16
-
17
13
/**
18
14
* Create a new raw query expression.
19
15
*
20
- * @param string|int|float $value
16
+ * @param TValue $value
21
17
* @return void
22
18
*/
23
- public function __construct ($ value )
24
- {
25
- $ this -> value = $ value ;
19
+ public function __construct (
20
+ protected $ value
21
+ ) {
26
22
}
27
23
28
24
/**
29
25
* Get the value of the expression.
30
26
*
31
27
* @param \Illuminate\Database\Grammar $grammar
32
- * @return string|int|float
28
+ * @return TValue
33
29
*/
34
30
public function getValue (Grammar $ grammar )
35
31
{
You can’t perform that action at this time.
0 commit comments