4
4
5
5
namespace Sikessem \Values ;
6
6
7
+ use Sikessem \Values \Objects \BoolObject ;
8
+ use Sikessem \Values \Objects \FloatObject ;
9
+ use Sikessem \Values \Objects \IntObject ;
10
+ use Sikessem \Values \Objects \MixedObject ;
11
+ use Sikessem \Values \Objects \NumberObject ;
12
+ use Sikessem \Values \Objects \NumericObject ;
13
+ use Sikessem \Values \Objects \ScalarObject ;
14
+ use Sikessem \Values \Objects \StringObject ;
7
15
use Sikessem \Values \Types \BoolType ;
8
16
use Sikessem \Values \Types \FloatType ;
9
17
use Sikessem \Values \Types \IntType ;
@@ -24,42 +32,42 @@ public static function from(mixed $value): self
24
32
25
33
public function intoBool (): BoolType
26
34
{
27
- return BoolValue ::of ($ this ->value );
35
+ return BoolObject ::of ($ this ->value );
28
36
}
29
37
30
38
public function intoInt (): IntType
31
39
{
32
- return IntValue ::of ($ this ->value );
40
+ return IntObject ::of ($ this ->value );
33
41
}
34
42
35
43
public function intoFloat (): FloatType
36
44
{
37
- return FloatValue ::of ($ this ->value );
45
+ return FloatObject ::of ($ this ->value );
38
46
}
39
47
40
48
public function intoString (): StringType
41
49
{
42
- return StringValue ::of ($ this ->value );
50
+ return StringObject ::of ($ this ->value );
43
51
}
44
52
45
53
public function intoNumber (): NumberType
46
54
{
47
- return NumberValue ::of ($ this ->value );
55
+ return NumberObject ::of ($ this ->value );
48
56
}
49
57
50
58
public function intoNumeric (): NumericType
51
59
{
52
- return NumericValue ::of ($ this ->value );
60
+ return NumericObject ::of ($ this ->value );
53
61
}
54
62
55
63
public function intoScalar (): ScalarType
56
64
{
57
- return ScalarValue ::of ($ this ->value );
65
+ return ScalarObject ::of ($ this ->value );
58
66
}
59
67
60
68
public function intoMixed (): MixedType
61
69
{
62
- return MixedValue ::of ($ this ->value );
70
+ return MixedObject ::of ($ this ->value );
63
71
}
64
72
65
73
public static function toBool (mixed $ value ): BoolType
0 commit comments