public function __construct(array $config)
{
if (!empty($config['url'])) {
$this->url = $config['url'];
}
if (!empty($config['checkPhrase'])) {
$this->checkPhrase = $config['checkPhrase'];
}
if (!empty($config['timeout'])) {
$this->timeout = $config['timeout'];
}
if (!empty($config['allowRedirects'])) {
$this->allowRedirects = $config['allowRedirects'];
}
}