Skip to content

Commit abfbe44

Browse files
committed
Instantiation block
1 parent 2eed172 commit abfbe44

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Makes/Stubs/Init/Contracts/Action.stub

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ use App\Interfaces\IAction;
66

77
abstract class Action implements IAction
88
{
9-
9+
# Блокировка инстанцирования
10+
final private function __construct() {}
1011
}

src/Makes/Stubs/Init/Contracts/Task.stub

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ use App\Interfaces\ITask;
66

77
abstract class Task implements ITask
88
{
9-
9+
# Блокировка инстанцирования
10+
final private function __construct() {}
1011
}

0 commit comments

Comments
 (0)