Skip to content

Commit a1e2f3d

Browse files
author
Andrey Helldar
committed
Minor improvements
1 parent 6fda33c commit a1e2f3d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Services/File.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,25 @@
33
namespace Helldar\PrettyArray\Services;
44

55
use Helldar\PrettyArray\Exceptions\FileDoesntExistsException;
6+
use Helldar\Support\Concerns\Makeable;
67
use Helldar\Support\Facades\Helpers\Filesystem\File as FileSupport;
78
use Helldar\Support\Facades\Tools\Stub;
89
use Helldar\Support\Tools\Stub as StubTool;
910

11+
/**
12+
* @method static \Helldar\PrettyArray\Services\File make(string $content = null)
13+
*/
1014
class File
1115
{
16+
use Makeable;
17+
1218
protected $content;
1319

1420
public function __construct(string $content = null)
1521
{
1622
$this->content = $content;
1723
}
1824

19-
public static function make(string $content = null)
20-
{
21-
return new static($content);
22-
}
23-
2425
/**
2526
* @param string $filename
2627
*

0 commit comments

Comments
 (0)