Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 167 Bytes

DontInstantiate.md

File metadata and controls

14 lines (10 loc) · 167 Bytes

DontInstantiate

Prevent object instantiation.

use Dont\DontInstantiate;

class MyClass
{
    use DontInstantiate;
}

new MyClass(); // will throw Error