ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
NullUsername.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23final class NullUsername implements UsernameInterface
24{
25 public function asString(): string
26 {
27 return '';
28 }
29
30 public function isEmpty(): bool
31 {
32 return true;
33 }
34
35 public function __toString(): string
36 {
37 return '';
38 }
39}
isEmpty()
True if this represents an empty (non-real) username.
asString()
Returns the username as string.
Implementations may represent a resolved, concrete username or a null/empty value.