Version 1
[yaffs-website] / vendor / jcalderonzumba / gastonjs / src / Browser / BrowserAuthenticationTrait.php
diff --git a/vendor/jcalderonzumba/gastonjs/src/Browser/BrowserAuthenticationTrait.php b/vendor/jcalderonzumba/gastonjs/src/Browser/BrowserAuthenticationTrait.php
new file mode 100644 (file)
index 0000000..7416a76
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+namespace Zumba\GastonJS\Browser;
+
+/**
+ * Trait BrowserAuthenticationTrait
+ * @package Zumba\GastonJS\Browser
+ */
+trait BrowserAuthenticationTrait {
+  /**
+   * Sets basic HTTP authentication
+   * @param $user
+   * @param $password
+   * @return bool
+   */
+  public function setHttpAuth($user, $password) {
+    return $this->command('set_http_auth', $user, $password);
+  }
+}