1 | <?php |
||
13 | class Username extends SerializeToString implements UsernameInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $username; |
||
19 | |||
20 | /** |
||
21 | * Username constructor. |
||
22 | * |
||
23 | * @param string $username |
||
24 | */ |
||
25 | 8 | public function __construct($username) |
|
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 5 | public function getUsername() |
|
37 | |||
38 | /** |
||
39 | * @param string $username |
||
40 | * |
||
41 | * @return self |
||
42 | */ |
||
43 | 8 | private function setUsername($username) |
|
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 4 | public function __toString() |
|
57 | } |
||
58 |