We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NullTransformer
1 parent 95ac57a commit d0556bdCopy full SHA for d0556bd
config/feeds.php
@@ -111,5 +111,6 @@
111
Transformers\BoolTransformer::class,
112
Transformers\DateTimeTransformer::class,
113
Transformers\EnumTransformer::class,
114
+ // Transformers\NullTransformer::class,
115
],
116
];
src/Transformers/NullTransformer.php
@@ -0,0 +1,20 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+namespace DragonCode\LaravelFeed\Transformers;
6
7
+use DragonCode\LaravelFeed\Contracts\Transformer;
8
9
+class NullTransformer implements Transformer
10
+{
11
+ public function allow(mixed $value): bool
12
+ {
13
+ return $value === null;
14
+ }
15
16
+ public function transform(mixed $value): string
17
18
+ return 'null';
19
20
+}
0 commit comments