Defuse\Crypto\KeyOrPassword::__construct PHP Method

__construct() private method

Constructor for KeyOrPassword.
private __construct ( integer $secret_type, mixed $secret )
$secret_type integer
$secret mixed (either a Key or a password string)
    private function __construct($secret_type, $secret)
    {
        $this->secret_type = $secret_type;
        $this->secret = $secret;
    }