/** * Function to get the instance of the class * * @return object instance of this class */ public static function getInstance() { if (self::$instance === NULL) { self::$instance = new self(); } return self::$instance; }