Nearsoft\SeleniumClient\Cookie::__construct PHP Method

__construct() public method

public __construct ( $name, $value, $path = null, $domain = null, $secure = null, $expiry = null )
    public function __construct($name, $value, $path = null, $domain = null, $secure = null, $expiry = null)
    {
        if (isset($secure) && !is_bool($secure)) {
            throw new \Exception("'Secure' property must be boolean");
        }
        if (isset($expiry) && !is_numeric($expiry)) {
            throw new \Exception("'Expiry' property must be numeric");
        }
        if ($name != null) {
            $this->_name = $name;
        }
        if ($value != null) {
            $this->_value = $value;
        }
        if ($path != null) {
            $this->_path = $path;
        }
        if ($domain != null) {
            $this->_domain = $domain;
        }
        if ($secure != null) {
            $this->_secure = $secure;
        }
        if ($expiry != null) {
            $this->_expiry = $expiry;
        }
    }