Skip to content

Instantly share code, notes, and snippets.

Last active April 29, 2021 17:59
What would you like to do?
class Singleton {
private function __construct() {
throw new Exception('Cannot Create new instances');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment