public function setEncryption(string $encryption): SecurityTxt
    {
        if (!$this->validEncryption($encryption)) {
            throw new Exception('Encryption must be a well-formed URL.');
        }

        $this->encryption = $encryption;

        return $this;
    }
public function setEncryption(string $encryption): SecurityTxt
    {
        if (!$this->validEncryption($encryption)) {
            throw new Exception('Encryption must be a well-formed URL.');
        }

        $this->encryption = $encryption;

        return $this;
    }
public function setEncryption ( string $ encryption ) : SecurityTxt { if ( ! $ this -> validEncryption ( $ encryption ) ) { throw new Exception ( 'Encryption must be a well-formed URL.' ) ; } $ this -> encryption = $ encryption ; return $ this ; }
Set the encryption.

@param  string $encryption

@return SecurityTxt
Set the encryption .