public static function set_crypt($crypt_obj = null) { if (is_object($crypt_obj) && $crypt_obj instanceof crypt) { self::$crypt = $crypt_obj; } }