mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-22 18:54:39 +01:00
f3242bfadc
[CodeQuality] Handle crash inside block statement with unreachable statement on OptionalParametersAfterRequiredRector (#6640)
46 lines
1.0 KiB
PHP
46 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace RectorPrefix202501\Illuminate\Contracts\Encryption;
|
|
|
|
interface Encrypter
|
|
{
|
|
/**
|
|
* Encrypt the given value.
|
|
*
|
|
* @param mixed $value
|
|
* @param bool $serialize
|
|
* @return string
|
|
*
|
|
* @throws \Illuminate\Contracts\Encryption\EncryptException
|
|
*/
|
|
public function encrypt($value, $serialize = \true);
|
|
/**
|
|
* Decrypt the given value.
|
|
*
|
|
* @param string $payload
|
|
* @param bool $unserialize
|
|
* @return mixed
|
|
*
|
|
* @throws \Illuminate\Contracts\Encryption\DecryptException
|
|
*/
|
|
public function decrypt($payload, $unserialize = \true);
|
|
/**
|
|
* Get the encryption key that the encrypter is currently using.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getKey();
|
|
/**
|
|
* Get the current encryption key and all previous encryption keys.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getAllKeys();
|
|
/**
|
|
* Get the previous encryption keys.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getPreviousKeys();
|
|
}
|