Kelunik\Acme\KeyPair::__construct PHP Method

__construct() public method

KeyPair constructor.
public __construct ( string $private, string $public )
$private string private key (PEM encoded)
$public string public key (PEM encoded)
    public function __construct($private, $public)
    {
        if (!is_string($private)) {
            throw new \InvalidArgumentException(sprintf("\$private must be of type string, %s given", gettype($private)));
        }
        if (!is_string($public)) {
            throw new \InvalidArgumentException(sprintf("\$public must be of type string, %s given", gettype($public)));
        }
        $this->private = $private;
        $this->public = $public;
    }