/** * Get (and instantiate, if necessary) the instance of the class * * @static * @return $this */ public static function get_instance() { if (!is_a(self::$instance, __CLASS__)) { self::$instance = new self(); } return self::$instance; }