File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 66
77use Illuminate \Support \Facades \File ;
88use Illuminate \Support \Str ;
9+ use Stringable ;
910
10- class ControlFileBuilder
11+ class ControlFileBuilder implements Stringable
1112{
1213 public function __construct (public SQLLoader $ loader )
1314 {
@@ -52,4 +53,9 @@ protected function inserts(): string
5253 {
5354 return implode (PHP_EOL , $ this ->loader ->tables );
5455 }
56+
57+ public function __toString (): string
58+ {
59+ return $ this ->build ();
60+ }
5561}
Original file line number Diff line number Diff line change 44
55namespace Yajra \SQLLoader ;
66
7- class InputFile implements \Stringable
7+ use Stringable ;
8+
9+ class InputFile implements Stringable
810{
911 public function __construct (
1012 public string $ path ,
Original file line number Diff line number Diff line change 44
55namespace Yajra \SQLLoader ;
66
7- class TableDefinition implements \Stringable
7+ use Stringable ;
8+
9+ class TableDefinition implements Stringable
810{
911 public function __construct (
1012 public string $ table ,
You can’t perform that action at this time.
0 commit comments