- Continued work on SearchRequest migration and fixed some more QueryBuilder migration too
This commit is contained in:
1 parent
9fdebf454d
commit
950df5eb99
15 files changed
+122
-48
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Ulmus\SearchRequest\Attribute\PropertyValueModifier;
|
||||
|
||||
use Ulmus\SearchRequest\Attribute\PropertyValueModifier;
|
||||
|
||||
#[\Attribute(\Attribute::TARGET_PROPERTY)]
|
||||
class Split extends PropertyValueModifier
|
||||
{
|
||||
public function __construct(
|
||||
public string $delimiter = ',',
|
||||
) {}
|
||||
|
||||
public function run(mixed $value) : mixed
|
||||
{
|
||||
return explode($this->delimiter, $value);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user