for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace DoctrineModuleTest\Authentication\Adapter\TestAsset;
/**
* Simple mock object for authentication adapter tests
*
* @link http://www.doctrine-project.org/
*/
class IdentityObject
{
/** @var string|null */
protected $username;
protected $password;
* @param mixed $password
public function setPassword($password) : void
$this->password = (string) $password;
}
public function getPassword() : ?string
return $this->password;
public function setUsername(string $username) : void
$this->username = (string) $username;
public function getUsername() : ?string
return $this->username;