@@ -23,20 +23,15 @@ trait ValueTrait
23
23
/**
24
24
* @var TValue
25
25
*/
26
- protected mixed $ value ;
26
+ public readonly mixed $ value ;
27
27
28
- /**
29
- * @return string
30
- */
31
28
public function __toString (): string
32
29
{
33
30
return $ this ->toString ();
34
31
}
35
32
36
33
/**
37
34
* Fluent to string method.
38
- *
39
- * @return string
40
35
*/
41
36
public function toString (): string
42
37
{
@@ -58,8 +53,7 @@ public function get(): mixed
58
53
/**
59
54
* Is the value any of the provided values?
60
55
*
61
- * @param mixed ...$values
62
- * @return bool
56
+ * @param mixed ...$values
63
57
*/
64
58
public function is (...$ values ): bool
65
59
{
@@ -76,20 +70,14 @@ public function is(...$values): bool
76
70
return false ;
77
71
}
78
72
79
- /**
80
- * @return bool
81
- */
82
73
public function isEmpty (): bool
83
74
{
84
75
return empty ($ this ->value );
85
76
}
86
77
87
- /**
88
- * @return bool
89
- */
90
78
public function isNotEmpty (): bool
91
79
{
92
- return !$ this ->isEmpty ();
80
+ return ! $ this ->isEmpty ();
93
81
}
94
82
95
83
/**
@@ -102,9 +90,6 @@ public function jsonSerialize(): mixed
102
90
103
91
/**
104
92
* Does the value match the provided value?
105
- *
106
- * @param mixed $value
107
- * @return bool
108
93
*/
109
94
protected function matches (mixed $ value ): bool
110
95
{
@@ -121,8 +106,6 @@ protected function matches(mixed $value): bool
121
106
122
107
/**
123
108
* Should strict comparison be used for comparing values?
124
- *
125
- * @return bool
126
109
*/
127
110
protected function useStrict (): bool
128
111
{
0 commit comments