EricMakesStuff\ServerMonitor\Monitors\HttpPingMonitor::__construct PHP Method

__construct() public method

public __construct ( array $config )
$config array
    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'];
        }
    }