for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Http\Message\Authentication;
/**
* Trait implementing the common username-password pattern.
*
* @author Márk Sági-Kazár <[email protected]>
*/
trait UserPasswordPair
{
* @var string
private $username;
private $password;
* Returns the username.
* @return string
public function getUsername()
return $this->username;
}
* Sets the username.
* @param string $username
public function setUsername($username)
$this->username = $username;
* Returns the password.
public function getPassword()
return $this->password;
* Sets the password.
* @param string $password
public function setPassword($password)
$this->password = $password;