Skip to content

Commit d710c75

Browse files
committed
wip
1 parent 218a65d commit d710c75

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Algos/Algo.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
use Illuminate\Support\Str;
88
use Illuminate\Support\Traits\Conditionable;
99
use Illuminate\Support\Traits\Macroable;
10+
use Stringable;
1011

11-
abstract class Algo implements Arrayable, Jsonable
12+
abstract class Algo implements Arrayable, Jsonable, Stringable
1213
{
1314
use Conditionable;
1415
use Macroable;
@@ -60,6 +61,11 @@ public function getName(): string
6061
return Str::of($baseName)->beforeLast('Algo');
6162
}
6263

64+
public function __toString(): string
65+
{
66+
return $this->getName();
67+
}
68+
6369
public function toArray(): array
6470
{
6571
return [];

0 commit comments

Comments
 (0)