/** * Returns the Social factory * @return SocialFactory */ public static function socialFactory() { if (!isset(self::$factorySocial)) { self::$factorySocial = new SocialFactory(); } return self::$factorySocial; }