| 1 | <?php |
||
| 29 | class UsernameNotFound extends \InvalidArgumentException implements \Caridea\Auth\Exception |
||
| 30 | { |
||
| 31 | private $username; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Creates a new exception. |
||
| 35 | * |
||
| 36 | * @param string $username The username that wasn't found |
||
| 37 | * @param \Exception $previous Optional preceding exception |
||
| 38 | */ |
||
| 39 | 2 | public function __construct(string $username, \Exception $previous = null) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Gets the username. |
||
| 47 | * |
||
| 48 | * @return string The username |
||
| 49 | */ |
||
| 50 | 1 | public function getUsername(): string |
|
| 54 | } |
||
| 55 |