19 declare(strict_types=1);
31 protected string $installation_host,
39 $addresses = $this->origin->value();
41 return array_filter($addresses,
function (
ilMailAddress $address):
bool {
42 if (($this->get_usr_id_by_login_callable)((
string) $address)) {
47 if ($address->getHost() === $this->installation_host) {
51 return !str_starts_with($address->getMailbox(),
'#');
$get_usr_id_by_login_callable
__construct(protected ilMailAddressList $origin, protected string $installation_host, callable $get_usr_id_by_login_callable)