/** * @param string $encryptKey * @return ZCrypt */ public static function getInstance($encryptKey = null) { if (!is_object(self::$instance)) { self::$instance = new ZCrypt($encryptKey); self::$instance->setPadding(Crypt::PADDING_ZERO); } return self::$instance; }