for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the core-library package.
*
* (c) 2018 NdC/WBW
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Library\Core\Net;
* Password authentication.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\Core\Net
class PasswordAuthentication {
* Password.
* @var string
private $password;
* Username.
private $username;
* Constructor.
* @param string $username The username.
* @param string $password The password.
public function __construct($username, $password) {
$this->password = $password;
$this->username = $username;
}
* Get the password.
* @return string Returns the password.
public function getPassword() {
return $this->password;
* Get the username.
* @return string Returns the username.
public function getUsername() {
return $this->username;
* Set the password.
* @return PasswordAuthentication Returns the password authentication.
public function setPassword($password) {
return $this;
* Set the username.
public function setUsername($username) {