DontInstantiate Prevent object instantiation. use Dont\DontInstantiate; class MyClass { use DontInstantiate; } new MyClass(); // will throw Error