. */ namespace SP\Domain\Auth\Ports; use SP\Providers\Auth\Ldap\LdapException; use SP\Providers\Auth\Ldap\LdapParams; /** * Interface LdapInterface * * @package Auth\Ldap */ interface LdapConnectionInterface { /** * @throws LdapException */ public function checkConnection(): void; /** * @throws LdapException */ public function connect(?string $bindDn = null, ?string $bindPass = null): void; /** * @throws LdapException */ public function mutate(LdapParams $ldapParams): LdapConnectionInterface; }