/** * Returns the instance of this class. * * @access public * @since 1.0.0 * @return Rock_The_Slackbot */ public static function instance() { if (!isset(self::$instance)) { $class_name = __CLASS__; self::$instance = new $class_name(); } return self::$instance; }
/** * Returns the instance of our main Rock_The_Slackbot class. * * Will come in handy when we need to access the * class to retrieve data throughout the plugin. * * @since 1.0.0 * @access public * @return Rock_The_Slackbot */ function rock_the_slackbot() { return Rock_The_Slackbot::instance(); }