Pop\Crypt\Mcrypt::__construct PHP Method

__construct() public method

Instantiate the mcrypt object.
public __construct ( integer $cipher = null, integer $mode = null, integer $source = null ) : self
$cipher integer
$mode integer
$source integer
return self
    public function __construct($cipher = null, $mode = null, $source = null)
    {
        if (!function_exists('mcrypt_encrypt')) {
            throw new Exception('Error: The mcrypt extension is not installed.');
        }
        $this->setCipher($cipher);
        $this->setMode($mode);
        $this->setSource($source);
    }