@@ -52,54 +52,54 @@ public static function setFilterArrayValueDelimiter(string $delimiter = null): v
52
52
}
53
53
}
54
54
55
- public static function exact (string $ name , ?string $ internalName = null , bool $ addRelationConstraint = true , string $ arrayValueDelimiter = null ): self
55
+ public static function exact (string $ name , ?string $ internalName = null , bool $ addRelationConstraint = true , string $ arrayValueDelimiter = null ): static
56
56
{
57
57
static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
58
58
59
59
return new static ($ name , new FiltersExact ($ addRelationConstraint ), $ internalName );
60
60
}
61
61
62
- public static function partial (string $ name , $ internalName = null , bool $ addRelationConstraint = true , string $ arrayValueDelimiter = null ): self
62
+ public static function partial (string $ name , $ internalName = null , bool $ addRelationConstraint = true , string $ arrayValueDelimiter = null ): static
63
63
{
64
64
static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
65
65
66
66
return new static ($ name , new FiltersPartial ($ addRelationConstraint ), $ internalName );
67
67
}
68
68
69
- public static function beginsWithStrict (string $ name , $ internalName = null , bool $ addRelationConstraint = true , string $ arrayValueDelimiter = null ): self
69
+ public static function beginsWithStrict (string $ name , $ internalName = null , bool $ addRelationConstraint = true , string $ arrayValueDelimiter = null ): static
70
70
{
71
71
static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
72
72
73
73
return new static ($ name , new FiltersBeginsWithStrict ($ addRelationConstraint ), $ internalName );
74
74
}
75
75
76
- public static function endsWithStrict (string $ name , $ internalName = null , bool $ addRelationConstraint = true , string $ arrayValueDelimiter = null ): self
76
+ public static function endsWithStrict (string $ name , $ internalName = null , bool $ addRelationConstraint = true , string $ arrayValueDelimiter = null ): static
77
77
{
78
78
static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
79
79
80
80
return new static ($ name , new FiltersEndsWithStrict ($ addRelationConstraint ), $ internalName );
81
81
}
82
82
83
- public static function scope (string $ name , $ internalName = null , string $ arrayValueDelimiter = null ): self
83
+ public static function scope (string $ name , $ internalName = null , string $ arrayValueDelimiter = null ): static
84
84
{
85
85
static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
86
86
87
87
return new static ($ name , new FiltersScope (), $ internalName );
88
88
}
89
89
90
- public static function callback (string $ name , $ callback , $ internalName = null , string $ arrayValueDelimiter = null ): self
90
+ public static function callback (string $ name , $ callback , $ internalName = null , string $ arrayValueDelimiter = null ): static
91
91
{
92
92
static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
93
93
94
94
return new static ($ name , new FiltersCallback ($ callback ), $ internalName );
95
95
}
96
96
97
- public static function trashed (string $ name = 'trashed ' , $ internalName = null ): self
97
+ public static function trashed (string $ name = 'trashed ' , $ internalName = null ): static
98
98
{
99
99
return new static ($ name , new FiltersTrashed (), $ internalName );
100
100
}
101
101
102
- public static function custom (string $ name , Filter $ filterClass , $ internalName = null , string $ arrayValueDelimiter = null ): self
102
+ public static function custom (string $ name , Filter $ filterClass , $ internalName = null , string $ arrayValueDelimiter = null ): static
103
103
{
104
104
static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
105
105
@@ -121,7 +121,7 @@ public function isForFilter(string $filterName): bool
121
121
return $ this ->name === $ filterName ;
122
122
}
123
123
124
- public function ignore (...$ values ): self
124
+ public function ignore (...$ values ): static
125
125
{
126
126
$ this ->ignored = $ this ->ignored
127
127
->merge ($ values )
@@ -140,7 +140,7 @@ public function getInternalName(): string
140
140
return $ this ->internalName ;
141
141
}
142
142
143
- public function default ($ value ): self
143
+ public function default ($ value ): static
144
144
{
145
145
$ this ->hasDefault = true ;
146
146
$ this ->default = $ value ;
@@ -162,14 +162,14 @@ public function hasDefault(): bool
162
162
return $ this ->hasDefault ;
163
163
}
164
164
165
- public function nullable (bool $ nullable = true ): self
165
+ public function nullable (bool $ nullable = true ): static
166
166
{
167
167
$ this ->nullable = $ nullable ;
168
168
169
169
return $ this ;
170
170
}
171
171
172
- public function unsetDefault (): self
172
+ public function unsetDefault (): static
173
173
{
174
174
$ this ->hasDefault = false ;
175
175
unset($ this ->default );
0 commit comments