EncryptTrait uses trait:short
The encrypt trait.
Tags
Table of Contents
Properties
- $encrypt : bool
- Encrypt the dumps of the database.
- $passphrase : string|null
- The internal passphrase value.
Methods
- initializeEncrypt() : void
- Initialize the internal encrypt value.
- initializePassphrase() : void
- Initialize the internal passphrase value.
- getPassPhrase() : string|null
- Returns the passphrase. if the command is interactive a question is asked to the command user to prompt the passphrase.
- isEncrypted() : bool
- Indicates if the dump/restore method encrypt the datas.
Properties
$encrypt
Encrypt the dumps of the database.
protected
bool
$encrypt
= true
$passphrase
The internal passphrase value.
protected
string|null
$passphrase
= null
Methods
initializeEncrypt()
Initialize the internal encrypt value.
public
initializeEncrypt([array<string|int, mixed> $init = [] ]) : void
Parameters
- $init : array<string|int, mixed> = []
initializePassphrase()
Initialize the internal passphrase value.
public
initializePassphrase([array<string|int, mixed> $init = [] ]) : void
Parameters
- $init : array<string|int, mixed> = []
getPassPhrase()
Returns the passphrase. if the command is interactive a question is asked to the command user to prompt the passphrase.
protected
getPassPhrase(InputInterface $input, OutputInterface $output[, bool $throwable = true ]) : string|null
Parameters
- $input : InputInterface
- $output : OutputInterface
- $throwable : bool = true
-
Indicates if the method throws a MissingPassphraseException if the passphrase is null.
Tags
Return values
string|null —Returns the passphrase.
isEncrypted()
Indicates if the dump/restore method encrypt the datas.
protected
isEncrypted(InputInterface $input) : bool
Parameters
- $input : InputInterface