| 1 | <?php |
||
| 29 | class UsernameAmbiguous extends \UnexpectedValueException implements \Caridea\Auth\Exception |
||
| 30 | { |
||
| 31 | /** |
||
| 32 | * @var string The username |
||
| 33 | */ |
||
| 34 | private $username; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Creates a new exception. |
||
| 38 | * |
||
| 39 | * @param string $username The ambiguous username |
||
| 40 | * @param \Exception $previous Optional preceding exception |
||
| 41 | */ |
||
| 42 | 2 | public function __construct(string $username, \Exception $previous = null) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * Gets the username. |
||
| 50 | * |
||
| 51 | * @return string The username |
||
| 52 | */ |
||
| 53 | 1 | public function getUsername(): string |
|
| 57 | } |
||
| 58 |