src/AnnotationProcessor/PropertyInformation.php
public function setEncryptionAlias(string $encryption_alias): self
    {
        if (empty($encryption_alias)) {
            throw new \InvalidArgumentException(sprintf('encryption_alias must not be empty %s', $encryption_alias));
        }

        $this->encryption_alias = $encryption_alias;

        return $this;
    }
public function setEncryptionAlias(string $encryption_alias): self
    {
        if (empty($encryption_alias)) {
            throw new \InvalidArgumentException(sprintf('encryption_alias must not be empty %s', $encryption_alias));
        }

        $this->encryption_alias = $encryption_alias;

        return $this;
    }
public function setEncryptionAlias ( string $ encryption_alias ) : self { if ( empty ( $ encryption_alias ) ) { throw new \ InvalidArgumentException ( sprintf ( 'encryption_alias must not be empty %s' , $ encryption_alias ) ) ; } $ this -> encryption_alias = $ encryption_alias ; return $ this ; }
Set the encryption alias for this property, used to encrypt the value before storing.

The alias must be added to the composer.json of the app, with the proper keys defined (depending
on if the app will encrypt, decrypt or do both).

"extra": {
"accessor-generator": {
$encryption_alias: {
public-key:
private-key:
...

@param string $encryption_alias

@throws \InvalidArgumentException
@return PropertyInformation
Set the encryption alias for this property used to encrypt the value before storing .