19declare(strict_types=1);
26 private readonly
string $login,
27 private readonly
string $lastname,
28 private readonly
string $firstname,
29 private readonly
string $unprocessed_search_term
36 'value' => rawurlencode($this->
login),
37 'searchBy' => $this->unprocessed_search_term
40 if ($this->lastname ===
'' && $this->firstname ===
'') {
42 'display' => $this->login
47 'display' =>
"{$this->login} [{$this->buildNameComponent()}]"
53 if ($this->lastname !==
'') {
54 return "{$this->lastname}, {$this->firstname}";
57 return $this->firstname;
getTagArray()
MUST return an array containing three properties "value", "display", and "searchBy".
__construct(private readonly string $login, private readonly string $lastname, private readonly string $firstname, private readonly string $unprocessed_search_term)