/** * Gets the instance of Preferences. * * @return Swift_Preferences */ public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new self(); } return self::$instance; }