/** * Get Instance creates a singleton class that's cached to stop duplicate instances */ public static function get_instance() { if (!self::$instance) { self::$instance = new self(); self::$instance->init(); } return self::$instance; }