/** * Singleton instance. * * @return Frame */ public static function getInstance() { if (is_null(self::$instance)) { self::$instance = new Frame(); } return self::$instance; }