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.
1 parent 218a65d commit d710c75Copy full SHA for d710c75
src/Algos/Algo.php
@@ -7,8 +7,9 @@
7
use Illuminate\Support\Str;
8
use Illuminate\Support\Traits\Conditionable;
9
use Illuminate\Support\Traits\Macroable;
10
+use Stringable;
11
-abstract class Algo implements Arrayable, Jsonable
12
+abstract class Algo implements Arrayable, Jsonable, Stringable
13
{
14
use Conditionable;
15
use Macroable;
@@ -60,6 +61,11 @@ public function getName(): string
60
61
return Str::of($baseName)->beforeLast('Algo');
62
}
63
64
+ public function __toString(): string
65
+ {
66
+ return $this->getName();
67
+ }
68
+
69
public function toArray(): array
70
71
return [];
0 commit comments